import ts from "typescript"; export interface TypecheckOptions { solutionConfigPath?: string; cartridgesDir?: string; cwd?: string; configFile?: string | false; } export interface ResolvedTypecheckProjects { cartridgeRoots: string[]; configPaths: string[]; currentDirectory: string; cwd: string; } type TypeScript = typeof ts; export declare function resolveTypeScript(currentDirectory: string): TypeScript; export declare function createFormatHost(currentDirectory: string, typescript?: TypeScript): ts.FormatDiagnosticsHost; export declare function parseConfigFile(configPath: string, currentDirectory: string, typescript?: TypeScript): ts.ParsedCommandLine; export declare function runProjectTypecheck(configPath: string, cartridgeRoots: string[], currentDirectory: string, typescript?: TypeScript): readonly ts.Diagnostic[]; export declare function withGeneratedTypeFiles(rootNames: string[], configPath: string, cartridgeRoots: string[]): string[]; export declare function typecheckSolutionProjects(options: TypecheckOptions): ts.Diagnostic[]; export declare function resolveTypecheckProjects(options: TypecheckOptions): ResolvedTypecheckProjects; export declare function formatDiagnostics(diagnostics: ts.Diagnostic[], currentDirectory: string, typescript?: TypeScript): string; export {};