import type ColumnDef from "../types/ColumnDef"; import type { Accessor } from "../types/ColumnDef"; import type Row from "../types/Row"; import type { PivotConfig } from "../types/PivotTypes"; export interface PivotManagerConfig { sourceRows: Row[]; fieldHeaders: ColumnDef[]; pivot: PivotConfig | null; } export interface PivotManagerState { active: boolean; pivotedRows: Row[]; headers: ColumnDef[]; rowGrouping?: Accessor[]; pivot: PivotConfig | null; } type StateChangeCallback = (state: PivotManagerState) => void; export declare class PivotManager { private config; private state; private subscribers; private cacheKey; constructor(config: PivotManagerConfig); private buildCacheKey; private computeState; getState(): PivotManagerState; isActive(): boolean; getPivot(): PivotConfig | null; updateConfig(partial: Partial): void; setPivot(pivot: PivotConfig | null): void; subscribe(callback: StateChangeCallback): () => void; private notifySubscribers; destroy(): void; } export {};