import { ICommand } from './CommandRegistry'; /** * Register a command for as long as the calling component is mounted. * * The registered `execute` and `when` always call the latest render's * functions, so they never close over stale state — the trap with registering * in a plain effect. Re-registers only when the id, label or keybinding * change. * * @example * ```tsx * useCommand({ id: 'desk.refresh', label: 'Desk: Refresh', keybinding: 'Mod+R', execute: () => refetch(query) }); * ``` */ export declare const useCommand: (command: ICommand) => void; /** The registered commands, re-rendering when they change. */ export declare const useCommands: () => ICommand[]; /** Re-render when the menus or commands change. Returns a change counter. */ export declare const useMenuRegistryVersion: () => number;