/** Callback fired when the user starts typing on a non-editable element. */ type OnStartTypingCallback = (event: KeyboardEvent) => void; /** * Framework-agnostic "start typing" detector. * * Registers a `keydown` listener on `document` and fires `onStart` when the * user presses a typeable key while no editable element (input, textarea, * contenteditable) is focused. * * Must be called inside a `useScope` factory so that `createEventListener` * and cleanup are bound to the correct scope. */ declare function createOnStartTyping(onStart: OnStartTypingCallback): void; export { type OnStartTypingCallback, createOnStartTyping };