import { EventEmitter } from "../../stencil-public-runtime";
import { AxiosError } from "axios";
export type FormMethodType = 'GET' | 'POST';
export type FormEnctypeType = 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | 'application/json';
export type FormAutocompleteType = 'on' | 'off';
export declare class XForm {
    action: string;
    acceptCharset: string;
    method: FormMethodType;
    autocomplete: FormAutocompleteType;
    enctype: FormEnctypeType;
    appendData: object;
    appendHeaders: object;
    dialogInterval: number;
    withoutDialog: boolean;
    withoutSuccessDialog: boolean;
    withoutValidationDialog: boolean;
    response: any;
    success: EventEmitter;
    failed: EventEmitter;
    /**
     * Element reference
     */
    el: HTMLElement;
    onSubmit(e: SubmitEvent): void;
    catchError(err: AxiosError): void;
    alertErrorByStatusCode(status: number, data: any): void;
    onAction(action: string): void;
    onFailed(data: any): void;
    onSuccess(data: any): void;
    /**
     * Render the component
     */
    render(): any;
}
