import type { GridSpec } from "../../../types"; import type { UseClientDataSourceParams } from "../../use-client-data-source"; import type { SourceState } from "../use-controlled-ds-state"; import { type RowLeaf } from "@1771technologies/lytenyte-shared"; import { type LeafNodeTuple } from "@1771technologies/lytenyte-core/internal"; import { type ControlledPivotState } from "./use-pivot-state.js"; export declare function usePivotData(props: UseClientDataSourceParams, [, leafs, , pinMap]: LeafNodeTuple, c: SourceState, controlled: ControlledPivotState): { tree: import("../use-group-tree/use-group-tree.js").RootNode | null; maxDepth: number; flatten: import("@1771technologies/lytenyte-shared").RowNode[]; rowByIdRef: import("react").RefObject>>; rowByIndexRef: import("react").RefObject>>; rowIdToRowIndexRef: import("react").RefObject>; leafIdsRef: import("react").RefObject>>; leafsTop: RowLeaf[] | { id: string; data: Record; kind: "aggregated"; depth: number; }[]; leafs: RowLeaf[]; leafsBot: RowLeaf[] | { id: string; data: Record; kind: "aggregated"; depth: number; }[]; sorted: number[]; pivotPiece: import("@1771technologies/lytenyte-core").Piece[] | null>; pivotGroupPiece: import("@1771technologies/lytenyte-core").Piece>; groupFn: import("@1771technologies/lytenyte-shared").GroupFn | null; };