/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { ValueTypeOf } from "@elaraai/east"; import type { RecordSliceBindType } from "@elaraai/east-ui/internal"; import type { SheetSavedView } from "./values.js"; interface Count { count: number | undefined; error?: string; } /** * Exact indexed counts for the saved tabs (#1345): each view's narrowing of * the `rows` source, counted through the record's indexes — the rows the tab * shows — and the whole record's for All. A view that holds no `rows` * narrowing counts every row. Pending counts never become resident-row counts. * On a scoped page (#1621) the whole is the rows its scope holds, and a view, * which holds its viewer's choices alone, counts them under the scope. * * @param rows - The `rows` source's part of the sheet's slice; `undefined` with no `rows` source * @param views - The saved views * @returns The whole count, and each view's, by its id */ export declare function useRecordViewCounts(rows: ValueTypeOf | undefined, views: readonly SheetSavedView[]): import("@elaraai/east-ui-components").TrackedResult<{ total: number | undefined; counts: Map; }>; export {}; //# sourceMappingURL=use-record-view-counts.d.ts.map