import React from 'react';
interface CheckoutData {
}
interface PayProps {
    order_id: string;
    amount: number;
    sale_channel?: string;
    is_deposit?: number;
    deposit_amount?: number;
    total_amount?: number;
}
interface CheckoutContextType {
    onCheckBeforeBooking: (data: any) => Promise<{
        result: boolean;
        num: number;
    }>;
    onCheckout: (data: any) => Promise<any>;
    onPay: (payProps: PayProps) => void;
    createBooking: any;
    checkBeforeBooking: any;
    freePay: any;
}
interface CheckoutProviderProps {
    children: React.ReactNode;
}
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
/**
 * 使用步骤管理的Hook
 * @throws {Error} 如果在StepProvider外部使用会抛出错误
 * @returns {StepContextType} 步骤管理上下文
 */
export declare const useCheckout: () => CheckoutContextType;
declare const _default: {
    defaultState: CheckoutData;
};
export default _default;
