import { Channel, Event, SubscribeParams } from "@langchain/protocol"; //#region src/client/stream/subscription.d.ts /** * Maps a protocol event method to its subscription channel. * * Returns `undefined` for unrecognized methods so that new server-side * channels (e.g. from extension transformers) don't break existing clients. * * @param event - Event whose method should be mapped to a channel. */ declare function inferChannel(event: Event): Channel | undefined; /** * Returns whether an event should be delivered for a subscription definition. * * @param event - Event being checked for delivery. * @param definition - Subscription filter definition to evaluate against. */ declare function matchesSubscription(event: Event, definition: SubscribeParams): boolean; //#endregion export { inferChannel, matchesSubscription }; //# sourceMappingURL=subscription.d.ts.map