import { ChannelName, Notifiable, NotificationChannels, SendOptions } from "../types.mjs"; //#region ../notifications/src/dispatch/notify.d.ts /** * Public shape of `notify`. The mapped portion gives `notify.` per * registered channel; `channel(name)` is the runtime escape. */ type Notify = { channel(name: string): { send(to: Notifiable | string, payload: unknown, options?: SendOptions): Promise; }; } & { [C in ChannelName]: (to: Notifiable | string, payload: NotificationChannels[C], options?: SendOptions) => Promise }; /** * Build the `notify` proxy. `channel(name)` returns a `{ send }` object; * any other property access returns a one-shot dispatcher for that channel. */ declare const notify: Notify; //#endregion export { Notify, notify }; //# sourceMappingURL=notify.d.mts.map