/** * Base error class for all Engram errors. * Includes an error code and optional context for structured error handling. */ export declare class EngramError extends Error { readonly code: string; readonly context?: Record; constructor(message: string, code?: string, context?: Record); } /** * Thrown when a requested entity is not found. */ export declare class NotFoundError extends EngramError { constructor(entity: string, id: string | number); } /** * Thrown when input validation fails beyond what Zod catches. */ export declare class ValidationError extends EngramError { constructor(message: string, context?: Record); } /** * Thrown when a database operation fails. */ export declare class DatabaseError extends EngramError { constructor(message: string, context?: Record); } /** * Thrown when a safety confirmation is missing or incorrect. */ export declare class SafetyCheckError extends EngramError { constructor(expectedConfirm: string); } /** * Thrown when no active session exists for an operation that requires one. */ export declare class NoActiveSessionError extends EngramError { constructor(); } /** * Base class for all PM framework errors. * PM errors are non-fatal — they degrade PM features without blocking core * Engram operations. Catch with PMFrameworkError to handle all PM failures. */ export declare class PMFrameworkError extends EngramError { constructor(message: string, code?: string, context?: Record); } /** * Thrown when a knowledge base query fails (data corruption, missing entry, bad input). */ export declare class PMKnowledgeError extends PMFrameworkError { constructor(message: string, context?: Record); } /** * Thrown when a workflow advisor check fails (state inconsistency, repo error). */ export declare class PMAdvisorError extends PMFrameworkError { constructor(message: string, context?: Record); } /** * Thrown when phase detection or phase gate automation fails. */ export declare class PMPhaseError extends PMFrameworkError { constructor(message: string, context?: Record); } //# sourceMappingURL=errors.d.ts.map