import type { Dispatch } from 'react'; import type { KbsDefinition, KbsInternalShortcut } from './types.ts'; interface KbsState { inputShortcuts: ReadonlyArray; cleanedShortcuts: readonly KbsInternalShortcut[]; combinedShortcuts: Record; disableCount: number; } type KbsAction = { type: 'INIT'; shortcuts: readonly KbsDefinition[]; } | { type: 'CLEANUP'; shortcuts: readonly KbsDefinition[]; } | { type: 'DISABLE_GLOBAL'; } | { type: 'ENABLE_GLOBAL'; }; export declare const initialKbsState: KbsState; export declare const kbsContext: import("react").Context; export declare const kbsDispatchContext: import("react").Context | null>; export declare function useKbsUncheckedDispatch(): Dispatch | null; export declare function useKbsDispatch(): Dispatch; export declare function kbsReducer(state: KbsState, action: KbsAction): KbsState; export {}; //# sourceMappingURL=kbs_context.d.ts.map