import { IsotopeFormatEncoding } from "./encoding"; /** * Isotope dictionary */ export interface IsotopeDictionary { [key: string]: string | string[]; } /** * Isotope format options */ export interface IsotopeFormatOptions { encoding?: IsotopeFormatEncoding; multiple?: boolean; } /** * Flatten data into a dictionary * * @template T - Data type * * @param data - Data to flatten and encode * @param options - Format options * @param path - Path prefix to prepend to name * * @return Encoded dictionary */ export declare function flatten(data: T, options?: Partial, path?: string[]): IsotopeDictionary; /** * Unflatten an encoded dictionary * * @template T - Data type * * @param dict - Dictionary to unflatten and decode * @param options - Format options * * @return Decoded data */ export declare function unflatten(dict: IsotopeDictionary, options?: Partial): T;