import { type RefObject } from "react"; import type { TextareaRenderable } from "@opentui/core"; import type { AppServices } from "../../ui-core/bootstrap/composition-root.js"; export interface DraftActionsInput { readonly editorRef: RefObject; readonly services: AppServices; readonly expandPastes: (text: string) => string; readonly resetRegistries: () => void; readonly resetMenuState: () => void; readonly setContentRows: (rows: number) => void; readonly clearPasteChips: () => void; readonly focusComposer: () => boolean; readonly refreshMenu: () => void; readonly syncContentRows: () => void; readonly notify: (message: string, durationMs: number) => void; } export interface DraftActions { readonly clear: (editor: TextareaRenderable) => void; readonly cut: () => Promise; readonly showCommands: () => void; readonly insert: (text: string) => void; } export declare function useDraftActions(input: DraftActionsInput): DraftActions;