import { TokenInfo } from '../Token/type';
export declare function useSwapSlippage({ fromToken, toToken, }: {
    fromToken?: TokenInfo | null;
    toToken?: TokenInfo | null;
}): {
    customSlippage: string | undefined;
    customSlippageNum: number;
    handleSlippageChange: (newItem: Pick<import("./useSwapSettingStore").CustomSwapPairSlippage, "slippage" | "recommend" | "disabled" | "deleted">) => void;
    forecastSlippage: number | undefined;
    forecastSlippageQuery: {
        data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: true;
        isSuccess: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isPlaceholderData: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        slippageData: {
            recommendSlippage?: undefined;
            slippageList?: undefined;
        } | {
            recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
            slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
        };
    } | {
        data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
        error: null;
        isError: false;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: true;
        status: "success";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isPlaceholderData: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        slippageData: {
            recommendSlippage?: undefined;
            slippageList?: undefined;
        } | {
            recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
            slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
        };
    } | {
        data: undefined;
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: true;
        isRefetchError: false;
        isSuccess: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isPlaceholderData: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        slippageData: {
            recommendSlippage?: undefined;
            slippageList?: undefined;
        } | {
            recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
            slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
        };
    } | {
        data: undefined;
        error: null;
        isError: false;
        isPending: true;
        isLoading: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isPlaceholderData: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        slippageData: {
            recommendSlippage?: undefined;
            slippageList?: undefined;
        } | {
            recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
            slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
        };
    } | {
        data: undefined;
        error: null;
        isError: false;
        isPending: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isLoading: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isPlaceholderData: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
        fetchStatus: import("@tanstack/query-core").FetchStatus;
        slippageData: {
            recommendSlippage?: undefined;
            slippageList?: undefined;
        } | {
            recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
            slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
        };
    };
    recommendSlippage: number;
    slippage: number;
    slippageLoading: boolean;
};
