@monei-js/components
Version:
MONEI UI Components enable you to collect sensitive payment information using customizable UI components.
11 lines (10 loc) • 817 B
TypeScript
import { CSSObject } from '../types/css';
import { GetPaymentMethodsResponse } from './types';
export declare const transformStyle: (style: CSSObject) => any;
export declare const loadScript: (src: string, nonce?: string | undefined, dataset?: Record<string, string | undefined> | undefined, forceReload?: boolean | undefined) => Promise<HTMLScriptElement>;
export declare const stringify: (obj: Record<string, any>) => string;
export declare const fixLocalstorage: () => Storage;
export declare const getClientEnv: () => string;
export declare const withError: <T>(p: Promise<T>) => Promise<[Error | undefined, T | undefined]>;
export declare const isMethodSupported: (config: GetPaymentMethodsResponse, paymentMethod: string) => boolean;
export declare const validateComponentProps: (props: any) => void;