` children. */ export declare function createMainChannelRenderer(slot: HTMLElement, opts?: MainChannelRendererOptions): ChannelRenderer; //# sourceMappingURL=main.d.ts.map
/** * @sharpee/platform-browser/channels/main — `main` channel renderer. * * Owner context: browser default. Implements ADR-165 §8 main-channel * behavior: append a `
` per entry to the `main` slot, with * decorations preserved. * * The `main` channel is append-mode; `value` is a `MainEntry[]` * (array of new entries this turn). Each entry becomes one `
`. * Entries with `tight: true` get a `main-entry--tight` class so CSS * can collapse the inter-paragraph margin against the previous entry. * * `onClear(target)` empties the slot when a `clear` event with a * matching target arrives (ADR-165 §4 step 2). */ import type { ChannelRenderer } from '@sharpee/channel-service'; export interface MainChannelRendererOptions { /** * Optional callback fired after appending. The browser client uses * this to scroll the slot's containing window to the bottom. */ onAfterAppend?(slot: HTMLElement): void; } /** * Construct the default browser `main` channel renderer. * * @param slot — the `main` slot HTMLElement (typically a `
` children. */ export declare function createMainChannelRenderer(slot: HTMLElement, opts?: MainChannelRendererOptions): ChannelRenderer; //# sourceMappingURL=main.d.ts.map