useKeyRecords.d.ts 494 B

12345678910
  1. export declare const OVERFLOW_KEY = "rc-menu-more";
  2. export default function useKeyRecords(): {
  3. registerPath: (key: string, keyPath: string[]) => void;
  4. unregisterPath: (key: string, keyPath: string[]) => void;
  5. refreshOverflowKeys: (keys: string[]) => void;
  6. isSubPathKey: (pathKeys: string[], eventKey: string) => boolean;
  7. getKeyPath: (eventKey: string, includeOverflow?: boolean) => string[];
  8. getKeys: () => string[];
  9. getSubPathKeys: (key: string) => Set<string>;
  10. };