import { type ActionRegistry } from './ActionRegistry.js'; import { KeyboardShortcut } from './KeyboardShortcut.js'; export declare class ShortcutRegistry { private readonly actionRegistry; private readonly actionToShortcut; private readonly keyMap; private activePrefixKey; private activePrefixTimeout; private consumePrefix; private readonly devToolsDefaultShortcutActions; private readonly disabledDefaultShortcutsForAction; private readonly keybindSetSetting; private readonly userShortcutsSetting; constructor(actionRegistry: ActionRegistry); static instance(opts?: { forceNew: boolean | null; actionRegistry: ActionRegistry | null; }): ShortcutRegistry; static removeInstance(): void; private applicableActions; shortcutsForAction(action: string): KeyboardShortcut[]; actionsForDescriptors(descriptors: { key: number; name: string; }[]): string[]; globalShortcutKeys(): number[]; keysForActions(actionIds: string[]): number[]; shortcutTitleForAction(actionId: string): string | undefined; handleShortcut(event: KeyboardEvent, handlers?: { [x: string]: () => Promise; }): void; actionHasDefaultShortcut(actionId: string): boolean; getShortcutListener(handlers: { [x: string]: () => Promise; }): (event: KeyboardEvent) => void; addShortcutListener(element: Element, handlers: { [x: string]: () => Promise; }): (arg0: Event) => void; handleKey(key: number, domKey: string, event?: KeyboardEvent, handlers?: { [x: string]: () => Promise; }): Promise; registerUserShortcut(shortcut: KeyboardShortcut): void; removeShortcut(shortcut: KeyboardShortcut): void; disabledDefaultsForAction(actionId: string): Set; private addShortcutToSetting; private removeShortcutFromSetting; private registerShortcut; private registerBindings; private isDisabledDefault; } export declare class ShortcutTreeNode { private readonly keyInternal; private actionsInternal; private chordsInternal; private readonly depth; constructor(key: number, depth?: number); addAction(action: string): void; key(): number; chords(): Map; hasChords(): boolean; addKeyMapping(keys: number[], action: string): void; getNode(key: number): ShortcutTreeNode | null; actions(): string[]; clear(): void; } export declare class ForwardedShortcut { static instance: ForwardedShortcut; } export declare const ForwardedActions: Set; export declare const KeyTimeout = 1000; export declare const DefaultShortcutSetting = "devToolsDefault";