export interface ExampleSource { html: string; css: string; } /** What a chat panel gets: the example's source, and a way to replace it. */ export interface ExampleChatSession { /** The `` element the panel belongs to. */ example: HTMLElement; /** The example's current markup and stylesheet, edits included. */ source(): ExampleSource; /** * Replace the markup, the stylesheet, or both, and re-run the example. The new markup goes * through `sanitize` → insert → `hydrate`, exactly as an edit does. */ apply(source: Partial): Promise; /** Aborted when the example leaves the page. */ signal: AbortSignal; } export interface ExampleHooks { /** * Called with the example's markup, parsed but inert (a `