/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type Suggestions } from "./sheet-state.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"; /** One copilot request — a run after a delay, or a result to deliver once the rows have rendered. */ export interface SuggestRequest { seq: number; rowId: string; ms: number; ready?: Suggestions; } /** * Runs the copilot for a row, once the rows have rendered (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 What asks the copilot to run */ export declare function useSheetCopilot(sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine): { requestReady: (rowId: string, ready: Suggestions) => void; requestRun: (rowId: string, ms: number) => void; }; /** What {@link useSheetCopilot} gives the parts after it. */ export type SheetCopilot = ReturnType; //# sourceMappingURL=use-copilot.d.ts.map