import type { TRPCError } from "@trpc/server";
type ErrorShape = {
    message: string;
    code: number;
    data: {
        code: string;
        httpStatus: number;
        path?: string;
        [key: string]: unknown;
    };
};
type ErrorFormatterOptions = {
    shape: ErrorShape;
    error: TRPCError;
    type: "query" | "mutation" | "subscription" | "unknown";
    path: string | undefined;
    input: unknown;
    ctx: unknown;
};
export declare function errorFormatter({ shape, error }: ErrorFormatterOptions): ErrorShape;
export {};
//# sourceMappingURL=errorFormatter.d.ts.map