/** Same shape as `@strapi/core` `formatApplicationError` for admin JSON clients. */ export type StrapiAdminErrorPayload = { data: null; error: { status: number; name: string; message: string; details: Record; }; }; /** * Build status + body for narration admin routes without throwing `ApplicationError` * from a duplicate `@strapi/utils` copy (linked plugin `node_modules`), which breaks * Strapi's `instanceof` check and yields opaque 500s. */ export declare function narrationAdminErrorResponse(err: unknown, opts?: { narrationRequestId?: string; }): { status: number; body: StrapiAdminErrorPayload; };