export declare const ERROR_CODES: {
    readonly AGENTHQ_API_KEY_REQUIRED: "AGENTHQ_API_KEY_REQUIRED";
    readonly API_KEY_MISSING: "API_KEY_MISSING";
    readonly UPSTREAM_HTTP: "UPSTREAM_HTTP";
    readonly UPSTREAM_PARSE: "UPSTREAM_PARSE";
    readonly UPSTREAM_NO_DATA: "UPSTREAM_NO_DATA";
    readonly INVALID_INPUT: "INVALID_INPUT";
    readonly NOT_FOUND: "NOT_FOUND";
    readonly INTERNAL: "INTERNAL";
};
export type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
export declare class SafetyMcpError extends Error {
    readonly code: ErrorCode;
    readonly status?: number;
    readonly upstream?: string;
    readonly details?: unknown;
    constructor(code: ErrorCode, message: string, opts?: {
        status?: number;
        upstream?: string;
        details?: unknown;
    });
}
export declare function isSafetyMcpError(err: unknown): err is SafetyMcpError;
export declare function toMcpErrorContent(err: unknown): {
    content: Array<{
        type: "text";
        text: string;
    }>;
    isError: true;
};
//# sourceMappingURL=errors.d.ts.map