import { Input, Output, Protocol, RequestStatusEnum, STATUS_CODE } from '../../../types/index';
import { ManualRefuel, RequestType, Rewards, TxData } from '../common/quote/types';

export declare const useAutoHistory: ({ userAddress, pageSize, pageNumber, }: {
    userAddress: string;
    pageSize: number;
    pageNumber: number;
}) => {
    data: AutoOrderData[];
    totalPages: number;
    isLoading: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
    isSuccess: boolean;
};
export interface BaseOrderData {
    routingMode: "auto" | "manual";
    input: Input[];
    output: Output[];
    orderTimestamp: number;
    srcTimestamp: number;
    destTimestamp?: number;
    statusCode: STATUS_CODE;
    sender: string;
    receiver: string;
    requestHash: string;
    status: keyof typeof RequestStatusEnum;
    swapTime: number;
    primaryInput: Input;
    primaryOutput: Output;
    isSwapRoute: boolean;
}
export interface AutoOrderData extends BaseOrderData {
    routingMode: "auto";
    txData: TxData | null;
    requestType: RequestType;
    quoteId: string;
    rewards?: Rewards;
}
export interface ManualOrderData extends BaseOrderData {
    routingMode: "manual";
    routeId: string;
    protocol: Protocol;
    estimatedFulfilTime: number;
    refuel?: ManualRefuel;
}
export type OrderData = AutoOrderData | ManualOrderData;
