import { type Job, Sink as BaseSink, type ConfigVar } from "../../topology"; import type { Subject } from "../../handler/subject"; /** * Parameters for creating a Kafka sink. */ export interface KafkaSinkParams { /** * Comma-separated list of broker addresses. */ brokers: ConfigVar; } /** * Kafka Sink allows you to send events to external Kafka topics. */ export declare class Sink extends BaseSink { private id; /** * Creates a new Kafka sink. * * @param job - The job that will use this sink * @param id - An identifier for this sink * @param params - Configuration parameters for the Kafka sink */ constructor(job: Job, id: string, params: KafkaSinkParams); /** * Collects an event to be sent to the Kafka sink. * * @param subject - The subject associated with this event * @param value - The serialized Kafka record to send to the sink */ collect(subject: Subject, value: Uint8Array): void; }