/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { SheetToolbarTabs } from "./Toolbar.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 { SheetOpenEditor } from "./use-open-editor.js"; /** * Reads the view tabs and what the toolbar says of the lens (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 sheetOpenEditor - The styles and the open editor * @returns The tabs, the summary, the folds and the lens's count */ export declare function useSheetViewTabs(sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetOpenEditor: SheetOpenEditor): { count: string; foldAll: { folded: boolean; count: number; noun: { readonly singular: string; readonly plural: string; }; onFoldAll: (folded: boolean) => void; } | undefined; lensMatches: number | undefined; onFold: (r: number, all?: boolean) => void; onSubRows: (r: number, all: boolean) => void; summary: string | undefined; tabs: SheetToolbarTabs | undefined; wholeCount: number; }; /** What {@link useSheetViewTabs} gives the parts after it. */ export type SheetViewTabs = ReturnType; //# sourceMappingURL=use-view-tabs.d.ts.map