import type { SynthesizedHandler } from "../handler/synthesized-handler"; /** * Options for a test run. */ export interface TestRunOptions { /** * If true, the test run will print messages from the reduction process. * * @default false */ verbose?: boolean; } /** * A TestRun creates a list of commands to send to a reduction `testrun` * process. Upon calling `run` all of the commands are sent to `testrun` which * in turn invokes the OperatorHandler methods. The results of the run can be * inspected in a memory sink. * * TestRuns should be created using the {@link Job.createTestRun} method. */ export declare class TestRun { private handler; private commandBuffer; private verbose; /** * @ignore */ constructor(handler: SynthesizedHandler, options?: TestRunOptions); /** * Add a source record for processing to the test run. * @param record */ addRecord(record: Buffer): void; /** * Tell the Reduction sources to emit a periodic watermark to advance the * job's time and expire timers. */ addWatermark(): void; /** * Execute the test run. */ run(): Promise; private addCommand; }