import type { OperatorHandler } from "../types"; import type { Job } from "./job"; import type { Sink } from "./sink"; /** * The parameters for creating an operator. */ export interface OperatorParams { /** * The number of instances of this operator to run. */ parallelism: number; /** * Returns the handler code that processes events for this operator. */ handler: (op: Operator) => OperatorHandler; } /** * The component of a Reduction job that invokes your operator handler. */ export declare class Operator { private id; private params; private sinks; /** * * @param job - The job that this operator is part of * @param id - An identifier for this operator * @param params - Other parameters for this operator */ constructor(job: Job, id: string, params: OperatorParams); /** * Connects the downstream sink to the operator. * @param sink - The sink to connect to this operator */ connect(sink: Sink): void; }