export interface APIError { message: string; path?: string[]; extensions: { code: string; exception?: { stacktrace: string[]; }; }; } export declare function callAPI(promise: Promise): Promise; export declare function callAPISuccess(promise: Promise): Promise; export declare function callAPIError(promise: Promise): Promise; export declare function isError(response: E | APIError): response is APIError;