import { vi, type MockedFunction } from 'vitest'; export const useInputKeyCommands: MockedFunction< (actionHandlers?: { onSelectAll?: (e: React.KeyboardEvent) => void; onEscape?: (e: React.KeyboardEvent) => void; onClear?: (e: React.KeyboardEvent) => void; onEnter?: (e: React.KeyboardEvent) => void; onPaste?: (e: React.KeyboardEvent) => void; }) => { onKeyDown: (event: React.KeyboardEvent) => void } > = vi.fn(() => ({ onKeyDown: vi.fn(), }));