import type { Dispatch, SetStateAction } from 'react';
import type { OffsetWell, OffsetSettingsInput, OffsetSettingsOutput } from '../../OffsetWellPickerV5.types';
import type { FilterState, FilterMutationSource } from '../../stores/filter-store/types';
import type { SelectionZone } from '../../types/SelectionZone';
type UseCancelHandlerParams = {
    selectedWells: OffsetWell[];
    setSelectedWells: Dispatch<SetStateAction<OffsetWell[]>>;
    setSelectedWellSection: Dispatch<SetStateAction<string>>;
    setCurrentSelectionZone: Dispatch<SetStateAction<SelectionZone | null>>;
    offsetSettings: OffsetSettingsInput | undefined;
    subjectWell: OffsetWell | null;
    isMapHidden: boolean;
    isFilterExpanded: boolean;
    wells: OffsetWell[] | null;
    pinnedWells: OffsetWell[] | null;
    onClose: (() => void) | undefined;
    onSave: ((offsetSettings: OffsetSettingsOutput, selectedWells?: OffsetWell[]) => void) | undefined;
    setFilters: (filters: FilterState, source?: FilterMutationSource) => void;
    resetIsLoadAllWells: () => void;
    resetSafeguard: () => void;
    abandonPendingSearch: () => void;
};
export declare const useCancelHandler: ({ setSelectedWells, setSelectedWellSection, setCurrentSelectionZone, offsetSettings, subjectWell, isMapHidden, isFilterExpanded, wells, pinnedWells, onClose, onSave, setFilters, resetIsLoadAllWells, resetSafeguard, abandonPendingSearch, }: UseCancelHandlerParams) => (() => void);
export {};
//# sourceMappingURL=useCancelHandler.d.ts.map