import { IApiResponse } from './ApiResponse'; import { ExceptionType } from './ExceptionType'; export declare const getDefaultErrorMessage: () => string; export declare function handleSuccess(res: IApiResponse, notifySuccess?: boolean): string; export declare function handleError(res: IApiResponse, notifyError: boolean, getUserFriendlyErrorMessage?: (exceptionType: ExceptionType) => string): { message: string; }; export declare function handleUpload(e: { request: { response: string; }; }): boolean; export type ISendRequestSettings = JQueryAjaxSettings & { notifyError?: boolean; getUserFriendlyErrorMessage?: (exceptionType: ExceptionType) => string; }; export declare function sendRequest(url: string, type?: string, data?: any, notifySuccess?: boolean, settings?: ISendRequestSettings): JQuery.Deferred; export declare function sendGrpcRequest(request: () => Promise): Promise;