import { Org, StatusResult } from '@salesforce/core'; import { Duration } from '@salesforce/kit'; import { AnyJson, JsonMap } from '@salesforce/ts-types'; import DOCeStreaming from './doceStream.js'; export default abstract class SObjectStreaming extends DOCeStreaming { private idsToInspect; private channelName; protected constructor(org: Org, wait: Duration, idsToInspect: string[], channelName: string); /** * This method sets the processor we will need inside the matchingProcessor and will start the stream. * * @param matchProcessor This processor will be used in the matchingProcessor, it's provided by each implementation. */ protected watchForSObject(matchProcessor: (message: JsonMap) => StatusResult): Promise; /** * This method processes if the event is valid for the IDs we want to monitor. * * @param event JsonMap containing the event from the streaming channel. * @returns If the event is valid, the matchProcessor will handle the response. If it's not valid, we continue listening. */ protected matchingProcessor(event: JsonMap, matchProcessor: (message: JsonMap) => StatusResult): StatusResult; }