export declare enum ErrorType { User = 0, System = 1 } export declare class FunctionPluginError extends Error { code: string; message: string; suggestions: string[]; errorType: ErrorType; constructor(errorType: ErrorType, code: string, message: string, suggestions: string[]); getMessage(): string; } export declare class FunctionNameConflictError extends FunctionPluginError { constructor(); } export declare class FetchConfigError extends FunctionPluginError { constructor(key: string); } export declare class ValidationError extends FunctionPluginError { constructor(key: string); } export declare class TemplateManifestNetworkError extends FunctionPluginError { constructor(url: string); } export declare class TemplateZipNetworkError extends FunctionPluginError { constructor(url: string); } export declare class TemplateZipFallbackError extends FunctionPluginError { constructor(); } export declare class BadTemplateManifestError extends FunctionPluginError { constructor(compose: string); } export declare class UnzipError extends FunctionPluginError { constructor(); } export declare class ProvisionError extends FunctionPluginError { constructor(resource: string); } export declare class GetConnectionStringError extends FunctionPluginError { constructor(); } export declare class ConfigFunctionAppError extends FunctionPluginError { constructor(); } export declare class FunctionAppOpError extends FunctionPluginError { constructor(op: string); } export declare class InstallTeamsfxBindingError extends FunctionPluginError { constructor(); } export declare class InstallNpmPackageError extends FunctionPluginError { constructor(); } export declare class InitAzureSDKError extends FunctionPluginError { constructor(); } export declare class ZipError extends FunctionPluginError { constructor(); } export declare class PublishCredentialError extends FunctionPluginError { constructor(); } export declare class UploadZipError extends FunctionPluginError { constructor(); } export declare function runWithErrorCatchAndThrow(error: FunctionPluginError, fn: () => T | Promise): Promise; //# sourceMappingURL=errors.d.ts.map