/*
 * Cloudbeds Payment Element Web Component
 */

export class PaymentElementWebComponent extends HTMLElement {}

export default PaymentElementWebComponent;

export interface PaymentHandles {
  submit(): Promise<PaymentResult>;
  validate(): Promise<boolean>;
}

declare global {
  interface HTMLElementTagNameMap {
    'cloudbeds-payment-element': HTMLElement;
  }
}
