import { FormikHelpers } from 'formik';
import { Dispatch, SetStateAction } from 'react';
import { Data } from '../../../types';
import { InitialFormData, SaveDataFunction, StationErrorStateType } from '../FormStation.models';
export type FormStationDataProvider = <TValues extends Data, TSubmitResponse>(initialData: InitialFormData<TValues>, saveData: SaveDataFunction<TValues, TSubmitResponse>, saveNotificationMessage?: string) => {
    onSubmit: (values: TValues, formikHelpers: FormikHelpers<TValues>) => Promise<void>;
    stationError?: StationErrorStateType;
    setStationError: Dispatch<SetStateAction<StationErrorStateType | undefined>>;
    isFormSubmitting: boolean;
    lastSubmittedResponse: React.MutableRefObject<TSubmitResponse | undefined>;
    initialValues: TValues | null | undefined;
};
export declare const useDataProvider: FormStationDataProvider;
//# sourceMappingURL=useDataProvider.d.ts.map