@noaignite/react-centra-checkout
Version:
React components and helpers for Centra checkout api
19 lines • 1.13 kB
TypeScript
import * as CentraCheckoutApi from "@noaignite/centra-types";
//#region src/internal/CentraEvents.d.ts
declare const CENTRA_EVENTS: readonly ["centra_checkout_callback", "centra_checkout_payment_callback"];
declare class CentraEvents {
eventHandlers: {
centra_checkout_callback?: Set<(payload: CentraCheckoutApi.Response<CentraCheckoutApi.SelectionResponse>) => unknown>;
centra_checkout_payment_callback?: Set<(payload: CentraCheckoutApi.SelectionResponse) => unknown>;
};
private static _default?;
constructor();
on(eventName: (typeof CENTRA_EVENTS)[number], callback: (response: CentraCheckoutApi.Response<CentraCheckoutApi.SelectionResponse>) => unknown): boolean;
off(eventName: (typeof CENTRA_EVENTS)[number], callback: (response: CentraCheckoutApi.Response<CentraCheckoutApi.SelectionResponse>) => unknown): boolean;
dispatch(eventName: (typeof CENTRA_EVENTS)[number], payload: CentraCheckoutApi.Response<CentraCheckoutApi.SelectionResponse>): void;
static get default(): CentraEvents;
get default(): CentraEvents;
}
//#endregion
export { CentraEvents };
//# sourceMappingURL=CentraEvents.d.ts.map