import type { MaybeRef, MaybeRefOrGetter } from 'vue'; import type { SelectItemKey } from '../../util/index.js'; export interface PivotCell> { value: any; raw: T; row: any; column: any; groupKey: string; } export interface PivotColumn { key: string; cells: (C | null)[]; items: C[]; } export interface PivotGroup { key: string; label: string; columns: PivotColumn[]; items: C[]; } export interface PivotProps> { items: MaybeRefOrGetter; itemValue: MaybeRef; itemRow: MaybeRef; itemColumn: MaybeRef; groupBy: MaybeRef; rows: MaybeRefOrGetter; columns: MaybeRefOrGetter; } export interface PivotOptions> { transformCell?: (cell: PivotCell) => C; } export declare function usePivot = Record, C extends PivotCell = PivotCell>(props: PivotProps, options?: PivotOptions): { rows: import("vue").ComputedRef; hasExplicitColumns: import("vue").ComputedRef; groups: Readonly[], PivotGroup[]>>; rowItems: Readonly, Map>>; };