import React from 'react';
declare type DirectToCheckoutContextValue = {
    directToCheckout: boolean;
    checkoutId?: string;
    step: DirectToCheckoutStep;
    affiliateUrl?: string;
};
export declare enum DirectToCheckoutStep {
    PDP = "PDP",
    PAYMENT = "PAYMENT"
}
export declare const defaultDirectToCheckoutContext: {
    value: {
        directToCheckout: boolean;
        step: DirectToCheckoutStep;
    };
    setValue: (_: DirectToCheckoutContextValue) => void;
};
interface Props {
    defaultValue?: DirectToCheckoutContextValue;
}
interface State {
    value: DirectToCheckoutContextValue;
    setValue: (value: DirectToCheckoutContextValue) => void;
}
export declare class DirectToCheckoutProvider extends React.Component<Props, State> {
    constructor(props: Props);
    render(): JSX.Element;
    private setValue;
}
export declare function useDirectToCheckout(): {
    value: DirectToCheckoutContextValue;
    setValue: (value: DirectToCheckoutContextValue) => void;
};
export {};
//# sourceMappingURL=direct-to-checkout-context.d.ts.map