/** * Stage 0 — Discover files. * * Resolves the project's tsconfig and produces an absolute, realpath'd * list of source files for stage 1 to inventory. * * Stage 0 does not create a TypeScript Program — that's stage 1's job. * It is purely about *what files exist*. */ import ts from 'typescript'; /** Input to {@link discoverFiles}: project directory and optional tsconfig override. */ export interface DiscoveryInput { readonly projectDir: string; readonly tsConfigPath?: string; } /** Result of {@link discoverFiles}: resolved paths, source files, and TS compiler options. */ export interface DiscoveryOutput { readonly projectDirAbs: string; readonly tsConfigPathAbs: string; readonly files: readonly string[]; readonly compilerOptions: ts.CompilerOptions; } /** Resolves the tsconfig for a TS project and returns the in-program source-file set. */ export declare function discoverFiles(input: DiscoveryInput & { readonly diagnosticIntent?: 'normal' | 'quiet'; }): DiscoveryOutput; //# sourceMappingURL=discover.d.ts.map