import { DiGraph } from "digraph-js"; import { Option, Effect } from "effect"; import * as D from "io-ts/lib/Decoder.js"; import { FileReader } from "../../filesystem/file-reader.js"; import type { SkottNode } from "../../graph/node.js"; import { Logger } from "../../logger.js"; import type { SkottConfig, WorkspaceConfiguration } from "../../skott.js"; export interface FollowModuleDeclarationOptions { rootPath: string; moduleDeclaration: string; isPathAliasDeclaration?: boolean; pathAliasBaseUrl?: string; } export interface DependencyResolverOptions { moduleDeclaration: string; projectGraph: DiGraph>; config: SkottConfig; rawNodePath: string; resolvedNodePath: string; workspaceConfiguration: WorkspaceConfiguration; logger: Logger; followModuleDeclaration: (args: FollowModuleDeclarationOptions) => Promise; } export type DependencyResolverControlFlow = Option.Option<{ exitOnResolve: boolean; }>; export interface DependencyResolver { resolve(options: DependencyResolverOptions): Promise; } export declare function dependencyResolverDecoder(): D.Decoder>; export declare function skipNextResolvers(): Option.Option<{ exitOnResolve: boolean; }>; export declare function continueResolution(): Option.Option; export declare const kExpectedModuleExtensions: Set; export declare function isFileSupportedByDefault(fileName: string): boolean; export declare function isManifestFile(fileName: string): boolean; export declare const defaultIgnoredDirs: Set; export declare function isDirSupportedByDefault(directoryName: string): boolean; export declare class ModuleNotFoundError { private readonly message; readonly _tag = "ModuleNotFoundError"; constructor(message: string); } export declare function resolveImportedModulePath(module: string): Effect.Effect;