UNPKG

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