import { CheckoutSession, CheckoutSessionLink, DigitalRiverComponentObject } from "../../types"; import * as React from "react"; export declare const Components: ({ checkoutSessionLink, redirectUrl, onReady, onChange, onSuccess, options, children }: ComponentProp) => import("react/jsx-runtime").JSX.Element; export declare enum ComponentTypeSupportedDone { Address = "address", TaxIdentifier = "taxidentifier", Shipping = "shipping", InvoiceAttribute = "invoiceattribute" } export declare const useComponentsContext: () => ComponentsContext; export type ComponentsContext = { components: DigitalRiverComponentObject; done(type: ComponentTypeSupportedDone): Promise; }; export interface ComponentProp { checkoutSessionLink: CheckoutSessionLink | undefined | null; redirectUrl?: string | undefined | null; options?: { button?: { type?: string; }; }; children?: React.ReactElement | React.ReactElement[]; onReady?(data: CheckoutSession): void; onChange?(data: CheckoutSession): void; onSuccess?(data: ComponentSuccessResponse): void; } export interface ComponentConfiguration { checkoutSessionId: string; redirectUrl?: string | null | undefined; options?: { button?: { type?: string; }; }; onReady?(data: CheckoutSession): void; onChange?(data: CheckoutSession): void; onSuccess?(data: ComponentSuccessResponse): void; onError?(data: any): void; } export interface ComponentProps { elementId?: string; } export interface ComponentSuccessResponse { delayedPaymentInstructions?: { sourceClientSecret: string; sourceId: string; }; order?: any; } //# sourceMappingURL=components.d.ts.map