/** * Error types for chant discovery, build, and lint failures */ /** * `"permission"` (chant #1045 Phase 2) — a run-fallback file executing inside * the sandboxed child (`./discovery/sandbox/`) hit Node's Permission Model * (`ERR_ACCESS_DENIED`) — filesystem, child-process, or worker-thread access * outside the sandbox's allowlist. Distinct from `"import"` (a module simply * failed to load/execute for an ordinary reason) so a permission denial is * recognizable as a sandbox boundary hit, not a generic import failure. */ export type DiscoveryErrorType = "import" | "resolution" | "circular" | "permission"; /** * Error during file discovery or module import */ export declare class DiscoveryError extends Error { readonly file: string; readonly type: DiscoveryErrorType; constructor(file: string, message: string, type: DiscoveryErrorType); toJSON(): { name: string; file: string; message: string; type: DiscoveryErrorType; }; } /** * Error during build/serialization */ export declare class BuildError extends Error { readonly entityName: string; constructor(entityName: string, message: string); toJSON(): { name: string; entityName: string; message: string; }; } /** * Error from lint rule violation */ export declare class LintError extends Error { readonly file: string; readonly line: number; readonly column: number; readonly ruleId: string; constructor(file: string, line: number, column: number, ruleId: string, message: string); toJSON(): { name: string; file: string; line: number; column: number; ruleId: string; message: string; }; } //# sourceMappingURL=errors.d.ts.map