
                         P    d Z ddlmZ ddlmZ ddlmZ ddedefdZdde	defd	Z
y
)z5The API that will be exposed to users of this package    )TextIO)hcl2)DictTransformerfilereturnc                 8    t        | j                         |      S )zLoad a HCL2 file.
    :param file: File with hcl2 to be loaded as a dict.
    :param with_meta: If set to true then adds `__start_line__` and `__end_line__`
    parameters to the output dict. Default to false.
    	with_meta)loadsread)r   r
   s     lib/third_party/hcl2/api.pyloadr      s     	22    textc                 h    t        j                  | dz         }t        |      j                  |      S )zLoad HCL2 from a string.
    :param text: Text with hcl2 to be loaded as a dict.
    :param with_meta: If set to true then adds `__start_line__` and `__end_line__`
    parameters to the output dict. Default to false.
    
r	   )r   parser   	transform)r   r
   trees      r   r   r      s,     ::dTk"DY/99$??r   N)F)__doc__typingr   hcl2.parserr   hcl2.transformerr   dictr   strr    r   r   <module>r      s:    ;   ,3v 34 3@ @ @r   