PathContext.d.ts 665 B

12345678910111213
  1. import * as React from 'react';
  2. export interface PathRegisterContextProps {
  3. registerPath: (key: string, keyPath: string[]) => void;
  4. unregisterPath: (key: string, keyPath: string[]) => void;
  5. }
  6. export declare const PathRegisterContext: React.Context<PathRegisterContextProps>;
  7. export declare function useMeasure(): PathRegisterContextProps;
  8. export declare const PathTrackerContext: React.Context<string[]>;
  9. export declare function useFullPath(eventKey?: string): string[];
  10. export interface PathUserContextProps {
  11. isSubPathKey: (pathKeys: string[], eventKey: string) => boolean;
  12. }
  13. export declare const PathUserContext: React.Context<PathUserContextProps>;