/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type SheetEffect } from "./sheet-state.js"; import type { EditorFocusRequest } from "./Editor.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"; /** * Runs the machine's effects (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 * @param sheetWrites - The cell writes, the removal and the proposals' inserts * @param sheetCopilot - What asks the copilot to run * @returns The runner, and the refs and requests its effects reach */ export declare function useSheetEffects(sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetWrites: SheetWrites, sheetCopilot: SheetCopilot): { cardRef: import("react").RefObject; editorFocus: EditorFocusRequest; jumpBy: import("react").RefObject<"anchor" | "key" | "reveal" | "search" | undefined>; revealSeq: number; ringMoves: import("react").RefObject; runEffects: (effects: readonly SheetEffect[]) => void; scrollTarget: { index: number; align: "auto" | "start"; nonce: number; } | undefined; seekIntent: import("react").RefObject<{ element: number; window: number; land: "first" | "last" | "end"; c: number; moves: number; } | undefined>; setScrollTarget: (target: { index: number; align: "auto" | "start"; }, fresh?: boolean) => void; toolbarRef: import("react").RefObject; }; /** What {@link useSheetEffects} gives the parts after it. */ export type SheetEffects = ReturnType; //# sourceMappingURL=use-effects.d.ts.map