import { TokenState } from '@specifyapp/specify-design-token-format'; type nestedValueWithToken = { [tokenName: string]: T; }; /** * `path` is expected to be a object key path separated by `.`, * rather than working with nested object, everything will be nested at the end. * Useful and when working with groups * Example: * - `hello` -> `{ hello: { ... } }` * - `hello.world` -> `{ hello: { world: { ... } } }` */ type flatNestedObject = { [path: string]: nestedValueWithToken | T; }; export declare function toNestedObject(flatObject: flatNestedObject): {}; export declare function makeDefaultPath(token: TokenState): string; type convertTokenReturn = { value: T; path?: string; name?: string; }; export declare function tokensToFlatObject(tokens: Array, convertToken: (token: TokenState) => convertTokenReturn | Array> | undefined): flatNestedObject; export {}; //# sourceMappingURL=flatNestedObject.d.ts.map