import { EventEmitter } from '../../../stencil-public-runtime';
import { Order } from '../../../types';
/**
 * This component listens to the order status
 * and confirms the order when payment is successful.
 */
export declare class ScOrderConfirmProvider {
  /** The order confirm provider element */
  el: HTMLScOrderConfirmProviderElement;
  /** The form id */
  formId: number;
  /** Are we in test or live mode. */
  mode: 'test' | 'live';
  /** The current order. */
  order: Order;
  /** Success url. */
  successUrl: string;
  /** The order is confirmed event. */
  scConfirmed: EventEmitter<void>;
  /** The order is paid event. */
  scOrderPaid: EventEmitter<Order>;
  /** Error event. */
  scError: EventEmitter<{
    message: string;
    code?: string;
    data?: any;
    additional_errors?: any;
  } | {}>;
  /** Listen for paid event. This is triggered by Stripe or Paypal elements when payment succeeds. */
  handlePaidEvent(): void;
  /** Confirm the order. */
  confirmOrder(): Promise<void>;
  render(): any;
}
