import { type Job, Sink as BaseSink, type ConfigVar } from "../../topology"; import type { Subject } from "../../handler/subject"; /** * Parameters for creating an HTTP API sink. */ export interface HTTPAPISinkParams { /** * The address where the HTTP API sink will send data. */ addr?: ConfigVar; } export interface HTTPAPISinkEvent { /** * A namespace for writing the record */ Topic: string; /** * Arbitrary data to send to the sink */ Data: Uint8Array; } /** * HTTP API Sink allows you to send events to external HTTP services. */ export declare class Sink extends BaseSink { private id; /** * Creates a new HTTP API sink. * * @param job - The job that will use this sink * @param id - An identifier for this sink * @param params - Configuration parameters for the HTTP API sink */ constructor(job: Job, id: string, params?: HTTPAPISinkParams); /** * Collects an event to be sent to the HTTP API sink. * * @param subject - The subject associated with this event event * @param value - The event data to send to the sink */ collect(subject: Subject, value: HTTPAPISinkEvent): void; }