import type { Operator, Job, ConfigVar } from '../../topology'; import type { KeyEventFunc } from '../../types'; /** * Parameters for creating an HTTP API source. */ export interface HTTPAPISourceParams { /** * Function that converts event data to KeyedEvents for processing. */ keyEvent: KeyEventFunc; /** * The address where the HTTP service for the source is listening. */ addr?: ConfigVar; /** * List of topics to subscribe to. */ topics?: string[]; } /** * HTTP API Source provides connectivity to HTTP endpoints that can serve events * on topics using a cursor value to track progress. */ export declare class Source { private operators; /** * Creates a new HTTP API source. * * @param job - The job that will use this source * @param id - An identifier for this source * @param params - Configuration parameters for the HTTP API source */ constructor(job: Job, id: string, params: HTTPAPISourceParams); /** * Connects an operator to this source. * * @param operator - The operator that will process events from this source */ connect(operator: Operator): void; }