import { EventEmitter } from '../../../stencil-public-runtime';
import { FormStateSetter, Order, ResponseError } from '../../../types';
/**
 * This component listens for a confirmed event and redirects to the success url.
 */
export declare class ScFormErrorProvider {
  /** The current order. */
  order: Order;
  /** Set the state. */
  scUpdateError: EventEmitter<ResponseError>;
  /** Form state event. */
  scSetState: EventEmitter<FormStateSetter>;
  /** Error to display. */
  error: ResponseError | null;
  /** Trigger the error event when an error happens  */
  handleErrorUpdate(val: any): void;
  handleOrderChange(): void;
  /** Listen for error events in component. */
  handleErrorEvent(e: any): void;
  /** Listen for pay errors. */
  handlePayError(e: any): void;
  /** This filters the error message with some more client friendly error messages. */
  getErrorMessage(error: any): any;
  /** First will display validation error, then main error if no validation errors. */
  errorMessage(): any;
  render(): any;
}
