/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type EditorOption, type LinkEditorView } from "./Editor.js"; import type { StripAction } from "./Strip.js"; import type { SheetDecode } from "./use-decode.js"; import type { SheetSession } from "./use-session.js"; import type { SheetBody } from "./use-body.js"; import type { SheetMachine } from "./use-machine.js"; import type { Styles } from "./parts.js"; /** * Reads what the open editor shows, and handles what it is told (see the module docs). * * @param sheetDecode - The decoded columns, layout, callbacks, narrowing and row source * @param sheetSession - The store, the lens, the paging, the session and the rows * @param sheetBody - The body, the row space and the cells at each place * @param sheetMachine - The machine's context and dispatch * @returns The styles, the editor's view and its handlers */ export declare function useSheetOpenEditor(sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine): { edit: import("./sheet-types.js").EditBuffer | null; editBadge: string; editCombobox: { options: EditorOption[]; highlighted: number; browse: boolean; } | undefined; editDate: Date | undefined; editGhost: string; editMeta: import("./model.js").SheetColumnMeta | undefined; editResolve: string; editWhenLevel: import("./parse/date.js").WhenLevel | undefined; linkArmed: import("./link/predict.js").LinkCandidate | undefined; linkEdit: import("./sheet-types.js").LinkEdit | undefined; linkEditCtx: import("./sheet-types.js").LinkEditCtx | undefined; linkGhostText: string; linkView: LinkEditorView | undefined; onEditorBlur: () => void; onEditorBrowse: (option: EditorOption) => void; onEditorChange: (val: string) => void; onEditorKey: (k: { key: string; shift: boolean; meta: boolean; alt: boolean; atEnd: boolean; }) => boolean; onEditorPick: (option: EditorOption) => void; onHalfDown: (side: 0 | 1) => void; onStripAction: (a: StripAction) => void; styles: Styles; }; /** What {@link useSheetOpenEditor} gives the parts after it. */ export type SheetOpenEditor = ReturnType; //# sourceMappingURL=use-open-editor.d.ts.map