/** * TypeScript Compiler API service errors * * @purity SHELL * @effect Error type definitions */ export type TypeScriptServiceError = { readonly _tag: "SymbolNotFoundError"; readonly symbolName: string; } | { readonly _tag: "TypeNotFoundError"; readonly nodeName: string; } | { readonly _tag: "ModuleNotFoundError"; readonly modulePath: string; } | { readonly _tag: "TypeResolutionError"; readonly message: string; } | { readonly _tag: "InvalidNodeError"; readonly nodeKind: number; } | { readonly _tag: "CheckerNotAvailableError"; }; /** * Creates SymbolNotFoundError * * @purity SHELL * @complexity O(1) */ export declare const makeSymbolNotFoundError: (symbolName: string) => TypeScriptServiceError; /** * Creates TypeNotFoundError * * @purity SHELL * @complexity O(1) */ export declare const makeTypeNotFoundError: (nodeName: string) => TypeScriptServiceError; /** * Creates ModuleNotFoundError * * @purity SHELL * @complexity O(1) */ export declare const makeModuleNotFoundError: (modulePath: string) => TypeScriptServiceError; /** * Creates TypeResolutionError * * @purity SHELL * @complexity O(1) */ export declare const makeTypeResolutionError: (message: string) => TypeScriptServiceError; /** * Creates InvalidNodeError * * @purity SHELL * @complexity O(1) */ export declare const makeInvalidNodeError: (nodeKind: number) => TypeScriptServiceError; /** * Creates CheckerNotAvailableError * * @purity SHELL * @complexity O(1) */ export declare const makeCheckerNotAvailableError: () => TypeScriptServiceError; /** * Filesystem service errors * * @purity SHELL * @effect Error type definitions */ export type FilesystemError = { readonly _tag: "FileNotFoundError"; readonly path: string; } | { readonly _tag: "DirectoryNotFoundError"; readonly path: string; } | { readonly _tag: "ReadError"; readonly path: string; readonly message: string; } | { readonly _tag: "PermissionError"; readonly path: string; }; /** * Creates FileNotFoundError * * @purity SHELL * @complexity O(1) */ export declare const makeFileNotFoundError: (path: string) => FilesystemError; /** * Creates DirectoryNotFoundError * * @purity SHELL * @complexity O(1) */ export declare const makeDirectoryNotFoundError: (path: string) => FilesystemError; /** * Creates ReadError * * @purity SHELL * @complexity O(1) */ export declare const makeReadError: (path: string, message: string) => FilesystemError; /** * Creates PermissionError * * @purity SHELL * @complexity O(1) */ export declare const makePermissionError: (path: string) => FilesystemError; //# sourceMappingURL=errors.d.ts.map