import { SortingState, ColumnSort } from '@tanstack/react-table';
import { z } from 'zod';
import { TextFilterOperator, FilterType } from '@calcom/types/data-table';
export type { ColumnFilterMeta, FilterableColumn } from '@calcom/types/data-table';
declare const ColumnFilterType: {
    readonly SINGLE_SELECT: "ss";
    readonly MULTI_SELECT: "ms";
    readonly TEXT: "t";
    readonly NUMBER: "n";
    readonly DATE_RANGE: "dr";
};
type ColumnFilterTypeValues = typeof ColumnFilterType;
export type { SortingState } from '@tanstack/react-table';
export declare const SYSTEM_SEGMENT_PREFIX = "system_";
export { ColumnFilterType, TextFilterOperator };
export declare const textFilterOperators: readonly ["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"];
export declare const ZTextFilterOperator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
export type SingleSelectFilterValue = {
    type: ColumnFilterTypeValues["SINGLE_SELECT"];
    data: string | number;
};
export declare const ZSingleSelectFilterValue: z.ZodObject<{
    type: z.ZodLiteral<"ss">;
    data: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strip", z.ZodTypeAny, {
    type: "ss";
    data: string | number;
}, {
    type: "ss";
    data: string | number;
}>;
export type MultiSelectFilterValue = {
    type: ColumnFilterTypeValues["MULTI_SELECT"];
    data: Array<string | number>;
};
export declare const ZMultiSelectFilterValue: z.ZodObject<{
    type: z.ZodLiteral<"ms">;
    data: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
}, "strip", z.ZodTypeAny, {
    type: "ms";
    data: (string | number)[];
}, {
    type: "ms";
    data: (string | number)[];
}>;
export type TextFilterValue = {
    type: ColumnFilterTypeValues["TEXT"];
    data: {
        operator: TextFilterOperator;
        operand: string;
    };
};
export declare const ZTextFilterValue: z.ZodObject<{
    type: z.ZodLiteral<"t">;
    data: z.ZodObject<{
        operator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
        operand: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    }, {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "t";
    data: {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    };
}, {
    type: "t";
    data: {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    };
}>;
declare const numberFilterOperators: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
export type NumberFilterOperator = (typeof numberFilterOperators)[number];
export declare const ZNumberFilterOperator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
export type NumberFilterValue = {
    type: ColumnFilterTypeValues["NUMBER"];
    data: {
        operator: NumberFilterOperator;
        operand: number;
    };
};
export declare const ZNumberFilterValue: z.ZodObject<{
    type: z.ZodLiteral<"n">;
    data: z.ZodObject<{
        operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
        operand: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    }, {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "n";
    data: {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    };
}, {
    type: "n";
    data: {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    };
}>;
export type DateRangeFilterValue = {
    type: ColumnFilterTypeValues["DATE_RANGE"];
    data: {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    };
};
export declare const ZDateRangeFilterValue: z.ZodObject<{
    type: z.ZodLiteral<"dr">;
    data: z.ZodObject<{
        startDate: z.ZodNullable<z.ZodString>;
        endDate: z.ZodNullable<z.ZodString>;
        preset: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    }, {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "dr";
    data: {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    };
}, {
    type: "dr";
    data: {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    };
}>;
export declare const ZFilterValue: z.ZodUnion<[z.ZodObject<{
    type: z.ZodLiteral<"ss">;
    data: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strip", z.ZodTypeAny, {
    type: "ss";
    data: string | number;
}, {
    type: "ss";
    data: string | number;
}>, z.ZodObject<{
    type: z.ZodLiteral<"ms">;
    data: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
}, "strip", z.ZodTypeAny, {
    type: "ms";
    data: (string | number)[];
}, {
    type: "ms";
    data: (string | number)[];
}>, z.ZodObject<{
    type: z.ZodLiteral<"t">;
    data: z.ZodObject<{
        operator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
        operand: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    }, {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "t";
    data: {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    };
}, {
    type: "t";
    data: {
        operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
        operand: string;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<"n">;
    data: z.ZodObject<{
        operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
        operand: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    }, {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "n";
    data: {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    };
}, {
    type: "n";
    data: {
        operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
        operand: number;
    };
}>, z.ZodObject<{
    type: z.ZodLiteral<"dr">;
    data: z.ZodObject<{
        startDate: z.ZodNullable<z.ZodString>;
        endDate: z.ZodNullable<z.ZodString>;
        preset: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    }, {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    }>;
}, "strip", z.ZodTypeAny, {
    type: "dr";
    data: {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    };
}, {
    type: "dr";
    data: {
        startDate: string | null;
        endDate: string | null;
        preset: string;
    };
}>]>;
export type DateRangeFilterOptions = {
    range?: "past" | "future" | "any" | "customOnly";
    convertToTimeZone?: boolean;
};
export type TextFilterOptions = {
    allowedOperators?: TextFilterOperator[];
    placeholder?: string;
};
export type ColumnFilter = {
    id: string;
    value: FilterValue;
};
export declare const ZColumnFilter: z.ZodObject<{
    id: z.ZodString;
    value: z.ZodUnion<[z.ZodObject<{
        type: z.ZodLiteral<"ss">;
        data: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
    }, "strip", z.ZodTypeAny, {
        type: "ss";
        data: string | number;
    }, {
        type: "ss";
        data: string | number;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"ms">;
        data: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
    }, "strip", z.ZodTypeAny, {
        type: "ms";
        data: (string | number)[];
    }, {
        type: "ms";
        data: (string | number)[];
    }>, z.ZodObject<{
        type: z.ZodLiteral<"t">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
            operand: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"n">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
            operand: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"dr">;
        data: z.ZodObject<{
            startDate: z.ZodNullable<z.ZodString>;
            endDate: z.ZodNullable<z.ZodString>;
            preset: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }>]>;
}, "strip", z.ZodTypeAny, {
    value: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    };
    id: string;
}, {
    value: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    };
    id: string;
}>;
export type FilterValueSchema<T extends FilterType> = T extends ColumnFilterTypeValues["SINGLE_SELECT"] ? typeof ZSingleSelectFilterValue : T extends ColumnFilterTypeValues["MULTI_SELECT"] ? typeof ZMultiSelectFilterValue : T extends ColumnFilterTypeValues["TEXT"] ? typeof ZTextFilterValue : T extends ColumnFilterTypeValues["NUMBER"] ? typeof ZNumberFilterValue : T extends ColumnFilterTypeValues["DATE_RANGE"] ? typeof ZDateRangeFilterValue : never;
export type FilterValue<T extends FilterType = FilterType> = T extends ColumnFilterTypeValues["SINGLE_SELECT"] ? SingleSelectFilterValue : T extends ColumnFilterTypeValues["MULTI_SELECT"] ? MultiSelectFilterValue : T extends ColumnFilterTypeValues["TEXT"] ? TextFilterValue : T extends ColumnFilterTypeValues["NUMBER"] ? NumberFilterValue : T extends ColumnFilterTypeValues["DATE_RANGE"] ? DateRangeFilterValue : never;
export type TypedColumnFilter<T extends FilterType> = {
    id: string;
    value: FilterValue<T>;
};
export type Sorting = ColumnSort;
export declare const ZSorting: z.ZodObject<{
    id: z.ZodString;
    desc: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
    desc: boolean;
    id: string;
}, {
    desc: boolean;
    id: string;
}>;
export declare const ZSortingState: z.ZodArray<z.ZodObject<{
    id: z.ZodString;
    desc: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
    desc: boolean;
    id: string;
}, {
    desc: boolean;
    id: string;
}>, "many">;
export declare const ZColumnSizing: z.ZodRecord<z.ZodString, z.ZodNumber>;
export declare const ZColumnVisibility: z.ZodRecord<z.ZodString, z.ZodBoolean>;
export type FacetedValue = {
    label: string;
    value: string | number;
    section?: string;
};
export type ActiveFilter = {
    f: string;
    v?: FilterValue;
};
export type ActiveFilters = ActiveFilter[];
export declare const ZActiveFilter: z.ZodObject<{
    f: z.ZodString;
    v: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
        type: z.ZodLiteral<"ss">;
        data: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
    }, "strip", z.ZodTypeAny, {
        type: "ss";
        data: string | number;
    }, {
        type: "ss";
        data: string | number;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"ms">;
        data: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
    }, "strip", z.ZodTypeAny, {
        type: "ms";
        data: (string | number)[];
    }, {
        type: "ms";
        data: (string | number)[];
    }>, z.ZodObject<{
        type: z.ZodLiteral<"t">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
            operand: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"n">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
            operand: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"dr">;
        data: z.ZodObject<{
            startDate: z.ZodNullable<z.ZodString>;
            endDate: z.ZodNullable<z.ZodString>;
            preset: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }>]>>;
}, "strip", z.ZodTypeAny, {
    f: string;
    v?: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    } | undefined;
}, {
    f: string;
    v?: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    } | undefined;
}>;
export declare const ZActiveFilters: z.ZodArray<z.ZodObject<{
    f: z.ZodString;
    v: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
        type: z.ZodLiteral<"ss">;
        data: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
    }, "strip", z.ZodTypeAny, {
        type: "ss";
        data: string | number;
    }, {
        type: "ss";
        data: string | number;
    }>, z.ZodObject<{
        type: z.ZodLiteral<"ms">;
        data: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
    }, "strip", z.ZodTypeAny, {
        type: "ms";
        data: (string | number)[];
    }, {
        type: "ms";
        data: (string | number)[];
    }>, z.ZodObject<{
        type: z.ZodLiteral<"t">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["equals", "notEquals", "contains", "notContains", "startsWith", "endsWith", "isEmpty", "isNotEmpty"]>;
            operand: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }, {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }, {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"n">;
        data: z.ZodObject<{
            operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
            operand: z.ZodNumber;
        }, "strip", z.ZodTypeAny, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }, {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }, {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    }>, z.ZodObject<{
        type: z.ZodLiteral<"dr">;
        data: z.ZodObject<{
            startDate: z.ZodNullable<z.ZodString>;
            endDate: z.ZodNullable<z.ZodString>;
            preset: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }, {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        }>;
    }, "strip", z.ZodTypeAny, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }, {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    }>]>>;
}, "strip", z.ZodTypeAny, {
    f: string;
    v?: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    } | undefined;
}, {
    f: string;
    v?: {
        type: "ss";
        data: string | number;
    } | {
        type: "ms";
        data: (string | number)[];
    } | {
        type: "t";
        data: {
            operator: "equals" | "endsWith" | "startsWith" | "contains" | "notEquals" | "notContains" | "isEmpty" | "isNotEmpty";
            operand: string;
        };
    } | {
        type: "n";
        data: {
            operator: "lt" | "lte" | "gt" | "gte" | "eq" | "neq";
            operand: number;
        };
    } | {
        type: "dr";
        data: {
            startDate: string | null;
            endDate: string | null;
            preset: string;
        };
    } | undefined;
}>, "many">;
export type FilterSegmentOutput = {
    id: number;
    name: string;
    tableIdentifier: string;
    scope: "USER" | "TEAM";
    activeFilters: ActiveFilters;
    sorting: SortingState;
    columnVisibility: Record<string, boolean>;
    columnSizing: Record<string, number>;
    perPage: number;
    searchTerm: string | null;
    createdAt: Date;
    updatedAt: Date;
    userId: number;
    teamId: number | null;
    team: {
        id: number;
        name: string;
    } | null;
};
export type SystemFilterSegment = {
    id: string;
    name: string;
    activeFilters: ActiveFilters;
    sorting?: SortingState;
    columnVisibility?: Record<string, boolean>;
    columnSizing?: Record<string, number>;
    perPage?: number;
    searchTerm?: string | null;
    type: "system";
};
export type SystemFilterSegmentInternal = Omit<SystemFilterSegment, "perPage"> & {
    tableIdentifier: string;
    perPage: number;
};
export type UserFilterSegment = FilterSegmentOutput & {
    type: "user";
};
export type CombinedFilterSegment = SystemFilterSegmentInternal | UserFilterSegment;
export type SegmentIdentifier = {
    id: string;
    type: "system";
} | {
    id: number;
    type: "user";
};
export type SegmentStorage = {
    [tableIdentifier: string]: {
        segmentId: number;
    };
};
export declare const ZSegmentStorage: z.ZodRecord<z.ZodString, z.ZodObject<{
    segmentId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    segmentId: number;
}, {
    segmentId: number;
}>>;
export type UseSegments = (props: UseSegmentsProps) => UseSegmentsReturn;
export type UseSegmentsProps = {
    tableIdentifier: string;
    providedSegments?: FilterSegmentOutput[];
    systemSegments?: SystemFilterSegment[];
};
export type UseSegmentsReturn = {
    segments: CombinedFilterSegment[];
    preferredSegmentId: SegmentIdentifier | null;
    isSuccess: boolean;
    setPreference: ({ tableIdentifier, segmentId, }: {
        tableIdentifier: string;
        segmentId: SegmentIdentifier | null;
    }) => void;
    isSegmentEnabled: boolean;
};
//# sourceMappingURL=types.d.ts.map