import * as ts from "typescript";
import { createDiagnosticsCollector } from "../../types/diagnostic.js";
import type { TsonicProgram } from "../../program.js";
export type ValidationResult = ReturnType<typeof createDiagnosticsCollector>;
export declare const createTestProgram: (source: string, fileName?: string, extraFiles?: Readonly<Record<string, string>>) => TsonicProgram & {
    readonly sourceFile: ts.SourceFile;
};
export declare const runValidation: (sourceText: string, extraFiles?: Readonly<Record<string, string>>) => ValidationResult;
export declare const runValidationInTempProject: (sourceText: string, extraFiles?: Readonly<Record<string, string>>) => ValidationResult;
export declare const hasDiagnostic: (result: ValidationResult, code: string, messageFragment?: string) => boolean;
//# sourceMappingURL=test-helpers.d.ts.map