import type { ExecutionDetails, GrafastResultStreamList, GrafastSubscriber } from "../interfaces.ts"; import { Step } from "../step.ts"; import type { __ItemStep } from "./__item.ts"; /** * Subscribes to the given `pubsubOrPlan` to get realtime updates on a given * topic (`topicOrPlan`), mapping the resulting event via the `itemPlan` * callback. */ export declare class ListenStep extends Step { static $$export: { moduleName: string; exportName: string; }; isSyncAndSafe: boolean; /** * The id for the PostgreSQL context plan. */ private pubsubDep; /** * The plan that will tell us which topic we're subscribing to. */ private topicDep; private initialEventDep; itemPlan: (itemPlan: __ItemStep) => TPayloadStep; constructor(pubsubOrPlan: Step | null> | GrafastSubscriber | null, topicOrPlan: Step | string, itemPlan?: (itemPlan: __ItemStep) => TPayloadStep, $initialEvent?: Step); execute({ indexMap, values, stream, }: ExecutionDetails, TTopic]>): GrafastResultStreamList; } /** * Subscribes to the given `pubsubOrPlan` to get realtime updates on a given * topic (`topicOrPlan`), mapping the resulting event via the `itemPlan` * callback. */ export declare function listen(pubsubOrPlan: Step | null> | GrafastSubscriber | null, topicOrPlan: Step | string, itemPlan?: (itemPlan: __ItemStep) => TPayloadStep, $initialEvent?: Step): ListenStep; //# sourceMappingURL=listen.d.ts.map