import { APIResponse } from '@forge/api'; import { APIErrorResponseDetails, ForgeError } from '../errors'; export interface RequestContext { httpMethod: string; httpPath: string; } export declare function isForgeError(body: unknown): body is ForgeError; export declare function safeGetParsedBody(text: string): unknown | undefined; export declare function getAPIErrorResponseDetails(response: APIResponse, responseText: string, requestContext?: RequestContext): APIErrorResponseDetails; export declare function extractTraceId(response: APIResponse): string | null; export declare function checkResponseError(response: APIResponse, requestContext?: RequestContext): Promise; //# sourceMappingURL=error-handling.d.ts.map