import type { Slots, VNode } from 'vue-demi'; /** * Markup of every element component: an error block (#error slot), the Stripe mount * point (string ref `mount`) and a loader (#loading slot). Each part carries the * element's own class (`{className}-error`, `-mount`, `-loader`) and a shared * `vue-stripe-element-*` class. * * The parts are keyed: Vue 2 drops a `null` child, so without keys the mount node * would be patched into the error block when an error appears. `state.mount` is the * rendered mount node; the `StripeElement*` classes Stripe.js put on it are kept, * since Vue rewrites the whole class attribute when `loading` changes. */ export declare function renderElement(className: string, state: { error: string | null; loading: boolean; mount?: HTMLElement | null; }, slots: Slots, loadingText: string): VNode;