import type { ITestResult, IPlanLine, ISnapshotData, IErrorBlock, ITestEvent } from './protocol.types.js'; /** * ProtocolEmitter generates Protocol V2 messages * This class is used by tapbundle to emit test results in the new protocol format */ export declare class ProtocolEmitter { /** * Emit protocol version header */ emitProtocolHeader(): string; /** * Emit TAP version line */ emitTapVersion(version?: number): string; /** * Emit test plan */ emitPlan(plan: IPlanLine): string; /** * Emit a test result */ emitTest(result: ITestResult): string[]; /** * Emit a comment line */ emitComment(comment: string): string; /** * Emit bailout */ emitBailout(reason: string): string; /** * Emit snapshot data */ emitSnapshot(snapshot: ISnapshotData): string[]; /** * Emit error block */ emitError(error: IErrorBlock): string[]; /** * Emit test event */ emitEvent(event: ITestEvent): string; /** * Check if metadata should be inline */ private shouldUseInlineMetadata; /** * Create inline metadata string */ private createInlineMetadata; /** * Create block metadata lines */ private createBlockMetadata; }