/** * The set of possible value types in a `manifest` file's `key=value` pair. * * While numbers are allowed, they're not parsed here to avoid loss of precision. */ export type ManifestValue = string | boolean; /** A map containing the data from a `manifest` file. */ export type Manifest = Map; /** * Attempts to read a `manifest` file, parsing its contents into a map of string to JavaScript * number, string, or boolean. * @param rootDir the root directory in which a `manifest` file is expected * @returns a Promise that resolves to a map of string to JavaScript number, string, or boolean, * representing the manifest file's contents */ export declare function getManifest(rootDir: string): Promise; /** * A synchronous version of `getManifest`. * @param rootDir the root directory in which a `manifest` file is expected * @returns a map of string to JavaScript number, string, or boolean, representing the manifest * file's contents */ export declare function getManifestSync(rootDir: string): Manifest; /** * Attempts to parse a `manifest` file's contents into a map of string to JavaScript * number, string, or boolean. * @param contents the text contents of a manifest file. * @returns a Promise that resolves to a map of string to JavaScript number, string, or boolean, * representing the manifest file's contents */ export declare function parseManifest(contents: string): Map; /** * Parses a 'manifest' file's `bs_const` property into a map of key to boolean value. * @param manifest the internal representation of the 'manifest' file to extract `bs_const` from * @returns a map of key to boolean value representing the `bs_const` attribute, or an empty map if * no `bs_const` attribute is found. */ export declare function getBsConst(manifest: Manifest): Map;