export declare function handleIncrementalError(error: any): boolean;
declare global {
    var __tsconfigPaths: string[];
}
type DiagnosticResult = {
    success: boolean;
    language: string;
    version: string;
    source: string;
    errorCount: number;
    diagnostics: Array<{
        filePath: string;
        line: number;
        column: number;
        message: string;
    }>;
    error?: string;
    configPath?: string;
    configCount?: number;
    skipFurtherChecks?: boolean;
};
export declare const metadata: {
    needsPermissions: () => false;
};
export declare function resolveTypeScript(): Promise<{
    typescript: any;
    version: string;
    source: string;
} | {
    error: Error;
}>;
export declare function isTypeScriptProject(): Promise<{
    isTypeScript: boolean;
    tsconfigPaths: string[];
}>;
export declare function getTypeScriptDiagnosticsForConfig(typescript: any, version: string, source: string, tsconfigPath: string, filePaths?: string[]): Promise<DiagnosticResult>;
export declare function getTypeScriptDiagnostics(filePaths?: string[]): Promise<DiagnosticResult>;
export {};
