import { type Job, Sink as BaseSink } from "../../topology"; import type { Subject } from "../../handler/subject"; /** * Memory Sink captures events in memory for testing purposes. * Events are stored in the records array for inspection after a test run. * * @typeParam T - The type of records stored in this sink */ export declare class Sink extends BaseSink { private id; /** * The collected records from the sink execution. */ readonly records: T[]; /** * Creates a new memory sink. * * @param job - The job that will use this sink * @param id - An identifier for this sink */ constructor(job: Job, id: string); /** * Collects an event to be stored in memory. * * @param subject - The subject associated with this event * @param value - The data to store in memory */ collect(subject: Subject, value: T): void; }