export interface Properties { [key: string]: string; } /** * Parses a .properties string and returns the result as an object. * * @param str The string to parse as .properties * @return The result as an object * * @example ```javascript * const props = javaProps.parse('foo=Hello\nbar=World'); * console.log(props.foo + ' ' + props.bar); * // "Hello World" * ``` */ export declare function parse(str: string): Properties; /** * Converts a JavaScript object (associating keys to string values) to a .properties string. * * @param props The JavaScript object to convert * @return The .properties string corresponding to the given JavaScript object * * @example ```javascript * const str = javaProps.stringify({'foo': 'Hello', 'bar': 'World'}); * console.log(str); * // "foo: Hello\nbar: World\n" * ``` */ export declare function stringify(props: Properties): string; declare const _default: { parse: typeof parse; stringify: typeof stringify; }; /** * @deprecated */ export default _default;