import * as React from 'react'; import type { KeytipProps } from '../components/Keytip'; import type { KeytipWithId } from '../components/Keytip/internal/Keytip.types'; export type KeytipTreeNode = Pick & { id: string; uniqueId: string; target: HTMLElement | null; parent: string; children: Set; }; export declare function useTree(): { nodeMap: React.MutableRefObject>; addNode: (newNode: KeytipWithId) => void; getNode: (id: string) => KeytipTreeNode | undefined; updateNode: (keytip: KeytipWithId) => void; root: KeytipTreeNode; currentKeytip: React.MutableRefObject; getMatchingNode: (sequence: string) => KeytipTreeNode | undefined; getPartiallyMatched: (sequence: string) => (KeytipTreeNode | undefined)[]; getChildren: (node?: KeytipTreeNode) => string[]; removeNode: (id: string) => void; isCurrentKeytipParent: (keytip: KeytipProps) => boolean; getBack: () => void; };