import type { WorkbookLayout } from "./types.js"; export interface PivotFilterContext { pivot: string; field: string; axis: "row" | "column"; } export interface PivotFilterController { items(ctx: PivotFilterContext): string[] | Promise; hiddenValues(ctx: PivotFilterContext): string[] | Promise; setHidden(ctx: PivotFilterContext & { hidden: string[]; }): WorkbookLayout | void | Promise; } export interface PivotFilterPopoverHandle { open(ctx: PivotFilterContext, anchor: { left: number; top: number; right: number; bottom: number; }): void; close(): void; destroy(): void; } export declare function createPivotFilterPopover(controller: PivotFilterController, onChange: (layout: WorkbookLayout | void) => void): PivotFilterPopoverHandle;