import type { ErrorClass, ErrorContext } from './types'; export interface ConstructiveErrorArgs { code: string; message: string; errorClass: ErrorClass; http: number; context?: ErrorContext; } /** * The single canonical error class for Constructive. Carries the machine * `code`, its classification, an HTTP hint, and structured `context`. * * Replaces the previously separate `PgpmError`, `AuthError`, and `DataError` * shapes. GraphQL transports should serialize {@link toExtensions}. */ export declare class ConstructiveError extends Error { readonly code: string; readonly errorClass: ErrorClass; readonly http: number; readonly context?: ErrorContext; constructor(args: ConstructiveErrorArgs); /** Whether this error is safe to surface to end users. */ get isPublic(): boolean; /** GraphQL `extensions` payload for this error. */ toExtensions(): { code: string; class: ErrorClass; http: number; context?: ErrorContext; }; toString(): string; }