/** * seki-message-scroller-button: jump-to-edge control for the transcript. * * Finds its scroller via `closest('seki-message-scroller')`, listens to * `sekiScrollerEdgeChange`, and shows itself only when there is somewhere to * jump to. When inactive it is `inert`, `tabindex="-1"`, `data-active="false"`, * so it leaves no dead focus stop. * * ## Why the active-state update is imperative * The active state is toggled by mutating attributes **directly on the host** * (`this.el`) from the edge-change listener — it is deliberately NOT routed * through a Stencil `@State` bump + `render()`. This is the confirmed-broken * shape from #244: a component that reads a parent's state via `closest()` + * `addEventListener` + a `@State` bump does not reliably re-invoke `render()`. * Mutating the DOM directly here side-steps Stencil's render cycle entirely and * is guaranteed to apply. * * @component MessageScrollerButton * @slot - Button label/icon (defaults to a down chevron). */ export declare class SekiMessageScrollerButton { el: HTMLElement; /** * Which edge this button jumps to. `end` (default) is the classic * jump-to-latest; `start` jumps to the top of the history. * @default 'end' */ direction: 'end' | 'start'; /** Accessible label for the button. */ label: string; private scroller; connectedCallback(): void; componentDidLoad(): void; disconnectedCallback(): void; private seedInitialState; private handleEdgeChange; /** * Imperatively reflect the active state onto the host. Active when the target * edge is NOT yet reached (there is somewhere to jump to). See class doc for * why this bypasses Stencil's render cycle. */ private applyActiveState; private handleClick; render(): any; }