import { ApiError, type Run402Error } from "./errors.js";
/** Client diagnostic only: the original PostgREST body/status remain available. */
export declare class RestPermissionDenied extends ApiError {
    readonly code = "REST_PERMISSION_DENIED";
    readonly details: {
        source: "postgrest";
        upstream_status: number | null;
        upstream_code: "42501";
        method: string;
        relation: string;
    };
    constructor(error: Run402Error, method: string, relation: string);
}
export declare function restDiagnostic(error: unknown, method: string, relation: string): unknown;
//# sourceMappingURL=rest-diagnostics.d.ts.map