import { BillingDetails, CardElementOptions, CardSingleLineElement, SingleLineCardElementOptions, Environment, PaymentMethodResult } from '../../types'; export declare class SingleLineCardElement { private environment; private stripe?; private defaultMountTarget; private defaultOptions; element?: CardSingleLineElement; constructor(environment?: Environment); /** * Appends a single-line credit card field to a passed element or selector of a DOM element. * * If no value for `mountTarget` is passed in, the default mount target is `data-olo-pay-card-single-line`. * * @param cardOptions Options object containing information for: * `cardElementOptions`, `elementsOptions`, `mountTarget`. */ create(cardOptions?: SingleLineCardElementOptions): Promise; /** * Creates a payment method using card details on the form and * billing details (if passed). * * @param billingDetails Address, email, name, and phone. */ createPaymentMethod(billingDetails?: BillingDetails): Promise; /** * Applies a style object to the element. * * @param style Style object. */ applyStyles(style?: import("@stripe/stripe-js").StripeElementStyle): void; /** * Clear all credit card 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; }