/** * @sharpee/platform-browser/channels/image — `image:*` channel * renderers + preload. * * Owner context: browser default. Implements ADR-165 §8 image * behavior: * - `image:` (replace, json) — mount/unmount an `` at * the layer's z-index in the media slot. * - `image:preload` (event, json) — trigger asset prefetch via a * detached `` element; no visible output. * * Layer z-ordering convention (ADR-163 §11): `background < main < * overlay`. Custom layers above `overlay` use `data-layer` attribute * indices; the renderer sorts on insertion. * * Hide signal: `null` value clears the `` for that layer * (ADR-163 §6). */ import type { ChannelRenderer } from '@sharpee/channel-service'; export interface ImageChannelRendererOptions { /** * Hotspot click handler. Called with the hotspot's `command` field * when the user clicks an `` element synthesized for an image * with hotspots. Per ADR-163 §10, the handler routes to the * `Renderer.emitCommand(text)` so the engine sees a typed command. */ onHotspotCommand?(command: string): void; } /** * Construct the renderer for a single `image:` channel. * * @param slot — the media slot HTMLElement (typically a positioned * container so layered images stack correctly via z-index). * @param layer — the layer name (`background`, `main`, `overlay`, * or a story-defined custom layer). Used to address the * `` element this renderer manages. */ export declare function createImageChannelRenderer(slot: HTMLElement, layer: string, opts?: ImageChannelRendererOptions): ChannelRenderer; /** * `image:preload` channel renderer — event-mode. Triggers an asset * prefetch via a detached `` element; no visible DOM output. */ export declare function createImagePreloadChannelRenderer(slot: HTMLElement): ChannelRenderer; //# sourceMappingURL=image.d.ts.map