import { FunctionComponent } from 'react';
import { Rules as RulesType } from '../../../../../../shared-logic/src/CustomField/Rules/types';
import { RulesField } from '../../../../../../shared-logic/src/CustomField/types';
import { BaseCustomMetricModals } from '../types';
export declare type RulesModalProps = BaseCustomMetricModals<RulesField | undefined | null>;
export declare const RulesModal: FunctionComponent<RulesModalProps>;
export interface RulesForm {
    publicName?: string;
    rules?: RulesType[];
}
export declare const useRulesForm: (initialRulesField: RulesField | undefined | null) => {
    draft: RulesForm;
    updateDraftTitle: (publicName: string) => void;
    addNewRule: () => void;
    updateDraftRules: (rules: RulesType, index: number) => void;
    removeDraftRule: (index: number) => void;
};
