import type { Binding, KeyLike, KeymapEvent } from "../types.js"; export type CommandBindingMap = Record; export interface CommandBindingsOverrideWarning { code: "command-binding-override"; command: string; previousKey: KeyLike; nextKey: KeyLike; } export interface CommandBindingsError { code: "invalid-command-binding"; command: string; value: unknown; reason: Error; } export interface CommandBindingsOptions { onWarning?: (warning: CommandBindingsOverrideWarning) => void; onError?: (error: CommandBindingsError) => void; } export declare function commandBindings(bindings: Readonly, options?: CommandBindingsOptions): Binding[];