/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { SheetTransactions } 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 { SheetEffects } from "./use-effects.js"; export type SheetTransactionsIssue = SheetTransactions["issues"][number]; /** * A row the `rows` source's narrowing hid, being gone to (the hidden pick): * its place in the record, the rows as the narrowing it came from and the one * the pick left them under name them (`rowsQuery`), whether the pick was an * issue's — its cell then takes the ring — and whether its jump is made. */ export interface SheetReveal { element: number; from: string; to: string; issue: boolean; jumped: boolean; } /** * Takes the view where the key search, a key, a remount or an issue sends it (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 sheetEffects - The effect runner and what its effects reach * @returns The key search, the hidden pick, the scroll's anchor and the issue gone to */ export declare function useSheetJumps(value: SheetRootValue, sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetEffects: SheetEffects): { goToPlace: (place: number) => void; issueSought: import("react").RefObject<{ entry: string; row: number; } | undefined>; onAnchorChange: (at: { index: number; offset: number; }) => void; onIssue: (issue: SheetTransactionsIssue) => void; pickSearch: import("@elaraai/east-ui-components").KeySearchSource | undefined; restoreAnchor: { index: number; offset: number; } | undefined; revealRef: import("react").RefObject<(element: number, key: string | undefined, issue: boolean) => void>; rowsPick: import("../shared/schedule/hidden.js").SourceHidden; seekPlace: ((query: import("@elaraai/east-ui-components").DatasetKeyQuery) => Promise) | undefined; }; /** What {@link useSheetJumps} gives the parts after it. */ export type SheetJumps = ReturnType; //# sourceMappingURL=use-jumps.d.ts.map