import APIError from '../../errors/APIError';
export type ErrorResponse = {
    data?: any;
    errors: unknown[];
    stack?: string;
};
declare const formatErrorResponse: (incoming: Error | {
    [key: string]: unknown;
} | APIError<{
    [key: string]: unknown;
}>) => ErrorResponse;
export default formatErrorResponse;
//# sourceMappingURL=formatError.d.ts.map