import { lint, run, type Diagnostic, type OtelSink, type SnapshotBackend, type SpawnUsageTotal } from "../../../safejs/dist/index.js"; type LintOptions = NonNullable[1]>; export type RunResult = Awaited> & { usage: SpawnUsageTotal; }; export type ModuleExports = ReadonlyMap | Record; export type ModuleRegistry = ReadonlyMap | Record; export type HarnessRunEvent = { name: "harness.usage.totalled"; payload: SpawnUsageTotal; }; export type HarnessImportMeta = { kind: string | undefined; version: number | undefined; filename: string; dirname: string; body: string; }; export type RunHarnessPairOptions = { allowedGlobals?: LintOptions["allowedGlobals"]; clock?: { now: () => number; }; fix?: boolean; frontmatterOverrides?: Record; modulesFor: (frontmatter: Record, meta: HarnessImportMeta) => ModuleRegistry; onDiagnostics?: (diagnostics: readonly Diagnostic[]) => void; onEvent?: (event: HarnessRunEvent) => void; otelSink?: OtelSink; preserveSnapshotOnSuccess?: boolean; randomSeed?: number; resume?: boolean; signal?: AbortSignal; snapshotBackend?: SnapshotBackend; snapshotIntervalMs?: number; snapshotPath?: string; snapshotPathIsDefault?: boolean; }; export declare class LintError extends Error { readonly diagnostics: readonly Diagnostic[]; constructor(diagnostics: readonly Diagnostic[]); } export declare function runHarnessPair(mdPath: string, options: RunHarnessPairOptions): Promise; export {};