/** * @sharpee/platform-browser/channels/notify — `death`, `endgame`, * `score_notify` channel renderers. * * Owner context: browser default. Implements ADR-165 §8 notification * behavior: render a transient toast or modal in the `notify` slot * for each notification kind. * * All three are event-mode channels (sparse). Each emission produces * a new DOM node appended to the notify slot; existing notifications * stay so the player can read multiple in sequence (a death + a * final score, for example). A `data-kind` attribute marks each so * stories can style them with `[data-kind="death"]` selectors. */ import type { ChannelRenderer } from '@sharpee/channel-service'; export interface NotifyChannelRendererOptions { /** * Optional auto-dismiss delay (ms). When set, notifications are * removed from the DOM after this many milliseconds. Useful for * `score_notify` toasts that should fade. Defaults to undefined * (never auto-dismiss; suitable for `death` and `endgame`). */ dismissAfterMs?: number; } /** * `death` channel — event, text. Renders a persistent death notice. */ export declare function createDeathChannelRenderer(slot: HTMLElement): ChannelRenderer; /** * `endgame` channel — event, text. Renders a persistent endgame * notice (game won or game lost). */ export declare function createEndgameChannelRenderer(slot: HTMLElement): ChannelRenderer; /** * `score_notify` channel — event, text. Renders a transient toast. * Default `dismissAfterMs` is 4000 (4 seconds). */ export declare function createScoreNotifyChannelRenderer(slot: HTMLElement, opts?: NotifyChannelRendererOptions): ChannelRenderer; //# sourceMappingURL=notify.d.ts.map