import type { BlockApiClient } from '../../api';
import type { AutoAppliedDiscountPreview, DiscountContext } from '../../api/types';
export declare function useDiscountCodeUi(options: {
    api: BlockApiClient;
    discountContext: DiscountContext | null;
    subtotalCents?: number;
}): {
    discountUiOpen: boolean;
    setDiscountUiOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
    discountCode: string;
    setDiscountCode: import("react").Dispatch<import("react").SetStateAction<string>>;
    discountsAvailable: boolean;
    manualCodeEntryAllowed: boolean;
    autoAppliedDiscount: AutoAppliedDiscountPreview | null;
    discountsAvailableLoading: boolean;
};
