/** Structured error codes for the pi-server HTTP protocol. */ export declare const PiServerErrorCode: { readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND"; readonly SESSION_NO_STATIC_CONTEXT: "SESSION_NO_STATIC_CONTEXT"; readonly PARENT_ENTRY_NOT_FOUND: "PARENT_ENTRY_NOT_FOUND"; readonly LEAF_ID_NOT_FOUND: "LEAF_ID_NOT_FOUND"; readonly ENTRY_ALREADY_EXISTS: "ENTRY_ALREADY_EXISTS"; readonly INVALID_REQUEST: "INVALID_REQUEST"; readonly REQUIRED_FIELD_MISSING: "REQUIRED_FIELD_MISSING"; readonly RUN_NOT_FOUND: "RUN_NOT_FOUND"; readonly RUN_IN_PROGRESS: "RUN_IN_PROGRESS"; readonly SESSION_STATE_CONFLICT: "SESSION_STATE_CONFLICT"; readonly INTERNAL_ERROR: "INTERNAL_ERROR"; }; export type PiServerErrorCode = (typeof PiServerErrorCode)[keyof typeof PiServerErrorCode]; export interface PiServerErrorResponse { error: string; code?: PiServerErrorCode; details?: Record; } export declare class PiServerError extends Error { readonly code: PiServerErrorCode; readonly details?: Record; constructor(message: string, code: PiServerErrorCode, details?: Record); } export declare function isRecoverableTreeDivergenceCode(code: PiServerErrorCode | undefined): boolean; export declare function isRecoverableMissingServerStateCode(code: PiServerErrorCode | undefined): boolean; //# sourceMappingURL=error-codes.d.ts.map