import { ConditionalField, CustomField } from '../../../../../../shared-logic/src/CustomField/types';
import { DataSet } from '../../../../../../shared-logic/src/DataSet/types';
import { QueryAttributes } from '../../../../../../shared-logic/src/QueryAttributes/types';
import { QueryEngineConfig } from '../../../../../../shared-logic/src/QueryEngineConfig/types';
export declare type WipConditional = {
    publicName: string;
    measure: QueryAttributes.Measure | null;
};
export declare const useConditionalModal: (queryEngineConfig: QueryEngineConfig, conditional: ConditionalField | undefined, dataSet: DataSet, onNewCustomField: (customMetric: CustomField) => void) => {
    onChange: (partial: Partial<WipConditional>) => void;
    fieldPublicName: string;
    measure: QueryAttributes.Measure | null;
    completedFilters: QueryAttributes.Filter[][];
    wipFilters: Partial<import("../../FilterInput/types").CompletedWipFilter>[][];
    deleteWipFilter: (orFilterIndex: number, andFilterIndex: number) => QueryAttributes.Filter[][];
    updateWipFilter: (wipFilter: Partial<import("../../FilterInput/types").CompletedWipFilter>, orFilterIndex: number, andFilterIndex: number) => void;
    addOrFilter: () => void;
    isEditing: boolean;
    handleUpsertConditionalField: () => void;
    saveDisabled: boolean;
};
