import type { DatasetColumn } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api";
import type { BooleanFilterParts, ColumnMetadata, CoordinateFilterParts, ExcludeDateFilterParts, ExpressionClause, FilterClause, FilterOperator, FilterParts, NumberFilterParts, Query, RelativeDateFilterParts, SegmentMetadata, SpecificDateFilterParts, StringFilterParts, TimeFilterParts } from "./types";
export declare function filterableColumns(query: Query, stageIndex: number): ColumnMetadata[];
export declare function filterableColumnOperators(column: ColumnMetadata): FilterOperator[];
export declare function filter(query: Query, stageIndex: number, filterClause: FilterClause | ExpressionClause | SegmentMetadata): Query;
export declare function filters(query: Query, stageIndex: number): FilterClause[];
export declare function removeFilters(query: Query, stageIndex: number): Query;
export declare function filterArgsDisplayName(query: Query, stageIndex: number, clause: FilterClause): string;
export declare function stringFilterClause({ operator, column, values, options, }: StringFilterParts): ExpressionClause;
export declare function stringFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): StringFilterParts | null;
export declare function isStringFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function numberFilterClause({ operator, column, values, }: NumberFilterParts): ExpressionClause;
export declare function numberFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): NumberFilterParts | null;
export declare function isNumberFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function coordinateFilterClause({ operator, column, longitudeColumn, values, }: CoordinateFilterParts): ExpressionClause;
export declare function coordinateFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): CoordinateFilterParts | null;
export declare function isCoordinateFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function booleanFilterClause({ operator, column, values, }: BooleanFilterParts): ExpressionClause;
export declare function booleanFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): BooleanFilterParts | null;
export declare function isBooleanFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function specificDateFilterClause(query: Query, stageIndex: number, { operator, column, values }: SpecificDateFilterParts): ExpressionClause;
export declare function specificDateFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): SpecificDateFilterParts | null;
export declare function isSpecificDateFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function relativeDateFilterClause({ column, value, bucket, offsetValue, offsetBucket, options, }: RelativeDateFilterParts): ExpressionClause;
export declare function relativeDateFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): RelativeDateFilterParts | null;
export declare function isRelativeDateFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function excludeDateFilterClause(query: Query, stageIndex: number, { operator, column, values, bucket: bucketName }: ExcludeDateFilterParts): ExpressionClause;
export declare function excludeDateFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): ExcludeDateFilterParts | null;
export declare function isExcludeDateFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function timeFilterClause({ operator, column, values, }: TimeFilterParts): ExpressionClause;
export declare function timeFilterParts(query: Query, stageIndex: number, filterClause: FilterClause): TimeFilterParts | null;
export declare function isTimeFilter(query: Query, stageIndex: number, filterClause: FilterClause): boolean;
export declare function filterParts(query: Query, stageIndex: number, filterClause: FilterClause): FilterParts | null;
export declare function isStandardFilter(query: Query, stageIndex: number, filter: FilterClause): boolean;
export declare function isSegmentFilter(query: Query, stageIndex: number, filter: FilterClause): boolean;
type UpdateLatLonFilterBounds = {
    north: number;
    west: number;
    east: number;
    south: number;
};
/**
 * Add or update a filter against latitude and longitude columns. Used to power the 'brush filter' for map
   visualizations.
 */
export declare function updateLatLonFilter(query: Query, stageIndex: number, latitudeColumn: DatasetColumn, longitudeColumn: DatasetColumn, bounds: UpdateLatLonFilterBounds): Query;
/**
 * Add or update a filter against a numeric column. Used to power the 'brush filter'.
 */
export declare function updateNumericFilter(query: Query, stageIndex: number, numericColumn: DatasetColumn, start: number, end: number): Query;
/**
 * Add or update a filter against a temporal column. Used to power the 'brush filter' for a timeseries visualization.
 * `start` and `end` should be ISO-8601 formatted strings.
 */
export declare function updateTemporalFilter(query: Query, stageIndex: number, temporalColumn: DatasetColumn, start: string | Date, end: string | Date): Query;
export {};
