import { CardCvvElement, CardElementOptions, CvvOptions, Environment, TokenResult } from '../../types'; export declare class CvvElement { private environment; private stripe?; private defaultMountTarget; private defaultOptions; element?: CardCvvElement; constructor(environment?: Environment); /** * Appends a cvv field to a passed element or selector of a DOM element. * * Defaults: * - CVV: `data-olo-pay-cvv` * * @param cvvOptions Options object containing information for: * `cvvElementOptions`, `elementsOptions`, `mountTarget`. */ create(cvvOptions?: CvvOptions): Promise; /** * Creates a cvv token for cvv revalidation */ createCvvToken(): Promise; /** * Applies a style object to the element. * * @param style Style object. */ applyStyles(style?: import("@stripe/stripe-js").StripeElementStyle): void; /** * Clear all field values. */ clear(): void; /** * Removes the element from the DOM and destroys it. * A destroyed element can not be re-activated or re-mounted to the DOM. */ destroy(): void; /** * Mounts the element to the DOM. * Call `unmount` to remove it from the DOM. * * @param mountTarget Object containing selector or element target. */ mount(mountTarget?: string | HTMLElement): void; /** * Unmounts the element from the DOM. * Call `mount` to re-attach it to the DOM. */ unmount(): void; /** * Updates the options that the element was initialized with. * Updates are merged into the existing configuration. * * @param newOptions */ update(newOptions?: CardElementOptions): void; }