import type { Reporter, TestModule } from 'vitest/node'; export declare const DEFAULT_FILE_PROGRESS_PREFIX = "[vitest-file]"; export type FileProgressEvent = 'start' | 'finish'; export type WriteProgress = (chunk: string) => void; type Clock = () => number; export interface FileProgressReporterOptions { write?: WriteProgress; now?: Clock; /** Marker prefix for each line. Defaults to `DEFAULT_FILE_PROGRESS_PREFIX`. */ prefix?: string; } export declare function formatFileProgress(event: FileProgressEvent, moduleId: string, state?: string, atMs?: number, prefix?: string): string; declare class VitestFileProgressReporter implements Reporter { private readonly write; private readonly now; private readonly prefix; constructor(write: WriteProgress, now: Clock, prefix: string); onTestModuleQueued(testModule: TestModule): void; onTestModuleEnd(testModule: TestModule): void; } export declare function createFileProgressWriter(filePath: string): WriteProgress; export declare function createVitestFileProgressReporter(options?: FileProgressReporterOptions): VitestFileProgressReporter; export declare function isFileProgressReporter(reporter: unknown): reporter is VitestFileProgressReporter; export {};