import React from 'react'; type ItemNode = { itemKey: string; items?: ItemNode[]; }; type ItemKeyToParentKey = Record; export type SidebarStructure = { items: ItemNode[]; keyToParentKey: ItemKeyToParentKey; }; /** * Recursively walks react children to create a tree of sidebar item nodes and * their parent-child relationships. */ export declare const extractItemNodes: (children: React.ReactNode | React.ReactNode[]) => SidebarStructure; export declare const getItemPath: (keyToParentKey: ItemKeyToParentKey, itemKey?: string) => string[]; export declare const isMenu: (keyToParentKey: ItemKeyToParentKey, itemKey: string) => boolean; export declare const getMenuPath: (keyToParentKey: ItemKeyToParentKey, itemKey?: string) => string[]; export declare const getMaxDepth: (items?: ItemNode[]) => number; /** * Returns a new object with only the specified keys from the original one. */ export declare function pick, K extends keyof T>(object: T, keys: K[]): Pick; export declare function pick>(object: T, keys: string[]): Partial; export {}; //# sourceMappingURL=utils.d.ts.map