import { CardSection } from '../../components/checkout/form/CardSection'; import { Environment } from '../../types/checkout/CheckoutConfig.type'; import { VgsCardPayload } from '../types/CardPayload.type'; export declare class VgsCardAdapter { private _vgsService; private _vgsJwt; private _vgsState; private _vgsFieldsValid; private _vgsReinitTimer; private _currentTheme; private _environment; private _section; private _initGeneration; private _onInitFailure; private _onFieldsNotReady; constructor(jwt: string, environment: Environment, callbacks?: { onInitFailure?: () => void; onFieldsNotReady?: () => void; }); get section(): CardSection | null; renderSection(renderTarget: HTMLElement, onChangeEmit: () => void): void; /** * The section is built from `DEFAULT_PROFILE`, but the fields are mounted * against the theme — which sets a different font size and padding. Sizing * the skeleton off the theme keeps the block from resizing once VGS mounts. */ private _applySkeletonMetrics; private _onChangeEmit; initVgs(): void; getPayload(): Promise; isValid(): boolean; getError(): string | null; applyTheme(theme: Record): void; resetTheme(keys: string[]): void; destroy(): void; private _reinitWithTheme; private _buildProfileFromTheme; private _mountFields; private _handleStateChange; private _deriveFieldErrors; } //# sourceMappingURL=VgsCardAdapter.d.ts.map