import { SetupSelector, SetupSliceType, StepsOrFN, UseStepStatusPairs } from './types';
export type StepperDoRequestFn<Steps = unknown> = (skipCheck: boolean, step: Steps) => Promise<void>;
export declare const ALWAYS_REQUEST_ON_STEP_CHANGE: [number, number];
/**
 *In this hook we merge the general logic we use in all steps from BPSetup
 * If the step is not dirty and we started the request we do the request
 * and when loading is done we move to nextstep
 *
 * The user also has to possibility to move to the next step without loading
 * */
export declare const useGoToStepAfterRequest: <T, Steps, RootState>(currentStep: Steps, nextStep: StepsOrFN<Steps>, slice: SetupSliceType<Steps>, selector: SetupSelector<RootState>, source: string, dependency?: UseStepStatusPairs, saveFn?: () => Promise<T>, showErrorModal?: boolean, passThroughError?: boolean) => [boolean, (skipCheck?: boolean, step?: Steps) => void];
