import { DiagnosticHandler } from "../core/diagnostics.js"; import { CompilerHost, DiagnosticTarget, NoTarget, SourceFile, SystemHost } from "../core/types.js"; export interface FileHandlingOptions { allowFileNotFound?: boolean; diagnosticTarget?: DiagnosticTarget | typeof NoTarget; jsDiagnosticTarget?: DiagnosticTarget; } export declare function doIO(action: (path: string) => Promise, path: string, reportDiagnostic: DiagnosticHandler, options?: FileHandlingOptions): Promise; export declare function loadFile(host: SystemHost, path: string, load: (contents: string) => T, reportDiagnostic: DiagnosticHandler, options?: FileHandlingOptions): Promise<[T | undefined, SourceFile]>; /** * Look for the project root by looking up until a `package.json` is found. * @param path Path to start looking * @param lookIn */ export declare function findProjectRoot(statFn: CompilerHost["stat"], path: string): Promise; //# sourceMappingURL=io.d.ts.map