import type { SortingState, OnChangeFn, VisibilityState, ColumnSizingState } from "@tanstack/react-table";
import { type FilterValue, type FilterSegmentOutput, type ActiveFilters, type UseSegments } from "./lib/types";
export type DataTableContextType = {
    tableIdentifier: string;
    ctaContainerRef: React.RefObject<HTMLDivElement>;
    filterToOpen: React.MutableRefObject<string | undefined>;
    activeFilters: ActiveFilters;
    clearAll: (exclude?: string[]) => void;
    addFilter: (columnId: string) => void;
    updateFilter: (columnId: string, value: FilterValue) => void;
    removeFilter: (columnId: string) => void;
    sorting: SortingState;
    setSorting: OnChangeFn<SortingState>;
    columnVisibility: VisibilityState;
    setColumnVisibility: OnChangeFn<VisibilityState>;
    columnSizing: ColumnSizingState;
    setColumnSizing: OnChangeFn<ColumnSizingState>;
    pageIndex: number;
    pageSize: number;
    setPageIndex: (pageIndex: number | null) => void;
    setPageSize: (pageSize: number | null) => void;
    offset: number;
    limit: number;
    segments: FilterSegmentOutput[];
    selectedSegment: FilterSegmentOutput | undefined;
    segmentId: number | undefined;
    setSegmentId: (id: number | null) => void;
    canSaveSegment: boolean;
    isSegmentEnabled: boolean;
    searchTerm: string;
    setSearchTerm: (searchTerm: string | null) => void;
    timeZone?: string;
};
export declare const DataTableContext: import("react").Context<DataTableContextType | null>;
interface DataTableProviderProps {
    useSegments?: UseSegments;
    tableIdentifier?: string;
    children: React.ReactNode;
    ctaContainerClassName?: string;
    defaultPageSize?: number;
    segments?: FilterSegmentOutput[];
    timeZone?: string;
    preferredSegmentId?: number | null;
}
export declare function DataTableProvider({ tableIdentifier: _tableIdentifier, children, useSegments, defaultPageSize, ctaContainerClassName, segments: providedSegments, timeZone, preferredSegmentId, }: DataTableProviderProps): JSX.Element;
export {};
//# sourceMappingURL=DataTableProvider.d.ts.map