/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type EastType, type PatchPath } from "@elaraai/east"; import { type EditIssue } from "@elaraai/east-ui-components"; import type { EntryVersion } from "./transactions.js"; import type { SheetRootValue } from "./values.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 { SheetWrites } from "./use-writes.js"; import type { SheetCopilot } from "./use-copilot.js"; import type { SheetEffects } from "./use-effects.js"; import type { SheetGestures } from "./use-gestures.js"; import type { SheetOpenEditor } from "./use-open-editor.js"; import type { SheetJumps } from "./use-jumps.js"; import type { SheetViewTabs } from "./use-view-tabs.js"; import type { SheetActions } from "./use-actions.js"; import type { SheetInspect } from "./parts.js"; /** A draft struct's fields as their values: a field's value, `undefined` while it is missing or unreadable. */ export declare function draftValues(draft: Record, children: string | undefined): Record; /** A draft struct with fields set: a value, or missing for `undefined`. */ export declare function withFields(draft: Record, fields: ReadonlyMap): Record; /** * Builds what the inspector pane reads of the sheet and the gestures it makes (see the module docs). * * @param value - The Sheet root value * @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 * @param sheetWrites - The cell writes, the removal and the proposals' inserts * @param sheetCopilot - What asks the copilot to run * @param sheetEffects - The effect runner and what its effects reach * @param sheetGestures - The history's runner, the discard and the insertion * @param sheetOpenEditor - The styles and the open editor * @param sheetJumps - The key search, the scroll's anchor and the issue gone to * @param sheetViewTabs - The view tabs, the summary and the folds * @param sheetActions - The action host, its overlay and the phone's bottom container * @returns The inspector's reads and gestures, and a host's Add and Delete */ export declare function useSheetInspector(value: SheetRootValue, sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetWrites: SheetWrites, sheetCopilot: SheetCopilot, sheetEffects: SheetEffects, sheetGestures: SheetGestures, sheetOpenEditor: SheetOpenEditor, sheetJumps: SheetJumps, sheetViewTabs: SheetViewTabs, sheetActions: SheetActions): { addRow: (column?: string) => void; conflictValue: (_issue: EditIssue, path: PatchPath, value: unknown, type: EastType | undefined) => string | undefined; goToIssue: (issue: EditIssue) => void; holdRow: (id: string) => EntryVersion | undefined; inspect: SheetInspect; removeRowsById: (ids: readonly string[], held?: ReadonlyMap) => void; rowName: (id: string) => string; rowWhere: (issue: EditIssue) => string; versionOf: (id: string) => EntryVersion | undefined; }; /** What {@link useSheetInspector} gives the parts after it. */ export type SheetInspector = ReturnType; //# sourceMappingURL=use-inspector.d.ts.map