import { ITemplate, VerdocsEndpoint } from '@verdocs/js-sdk';
import { EventEmitter } from '../../../stencil-public-runtime';
import { SDKError } from '../../../utils/errors';
/**
 * Displays a file upload mechanism suitable for the first step of creating a template.
 * This is typically the first step in a template creation workflow.
 */
export declare class VerdocsTemplateCreate {
    /**
     * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
     */
    endpoint: VerdocsEndpoint;
    maxSize: number;
    /**
     * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved "cancel" event name.
     */
    exit: EventEmitter;
    /**
     * Event fired when the user changes the type.
     */
    next: EventEmitter<ITemplate>;
    /**
     * Event fired if an error occurs. The event details will contain information about the error. Most errors will
     * terminate the process, and the calling application should correct the condition and re-render the component.
     */
    sdkError: EventEmitter<SDKError>;
    /**
     * Event fired when the user updates the template.
     */
    templateCreated: EventEmitter<{
        endpoint: VerdocsEndpoint;
        template: ITemplate;
        templateId: string;
    }>;
    file: File | null;
    creating: boolean;
    progressLabel: string;
    progressPercent: number;
    errorMessage: string;
    componentWillLoad(): void;
    handleFileChanged(e: any): void;
    handleUpload(e: any): void;
    handleCancel(e: any): void;
    handleSubmit(e: any): Promise<void>;
    render(): any;
}
