/** Shared lookups into the DSH host shell DOM. Both the floating widget * (keeping its drag bounds clear of the header/composer) and the dashboard * (keeping its scroll content clear of the fixed composer on narrow * viewports) need to find the same host elements — sharing the lookup here * keeps the two readings of "where is the composer" from drifting apart. */ /** The shell's main column: the region between the sidebar and the details * panel. Found through the stable `conversation` slot anchor rather than the * hashed layout class names. */ export declare function getMainColumn(frame: HTMLElement): HTMLElement | null; /** The laid-out box behind a slot (see `slotElement`), or null if the slot is * not currently present or not yet laid out. */ export declare function slotBox(frame: HTMLElement, slot: string, side: 'child' | 'ancestor'): DOMRect | null; /** The DSH shell frame — the element that hosts the sidebar, conversation * column and fixed composer — found by walking up from any node inside our * own plugin root via the stable `[data-shell-overlay]` anchor. */ export declare function getShellFrame(node: HTMLElement | null): HTMLElement | null; /** The composer's laid-out box — the seat that reserves the composer's space, * or null if the slot is not present in the current DOM (host markup changed, * no session open, or mid-navigation). Callers that only need the box can * call `.getBoundingClientRect()`; callers that want to observe size changes * (e.g. `ResizeObserver`) need the element itself. * * Read `conversation.composer`, not the `.dock` sub-slot: the dock anchor * renders *inside* the composer card, and its nearest laid-out ancestor is a * 26px toolbar row (DSH 0.2.1), so measuring it reports a box that is both * far too short and ~100px below the composer's real top — the floating * widget then parks itself over the Send button instead of above it. * * `frame` may be null: the floating widget lives inside the shell overlay * subtree, but the dashboard's plugin root is mounted in the conversation * pane and cannot reach the shell frame that way. A frame-less call falls * back to a document-wide lookup — the composer is unique in the active * shell, so this cannot hit an ambiguous element. */ export declare function getComposerElement(frame: HTMLElement | null): HTMLElement | null; /** * The composer's *input card* — the rounded panel that visually IS the input * box (textarea + send row, ~780px max in DSH). The `.dock` seat found by * {@link getComposerElement} spans the whole pane, so its width is the wrong * answer for any width-parity goal: the visible input card is narrower, and * it is the column the dashboard cards must align with. The card is located * from the textarea's ancestor chain — the first ancestor with a visible * background and a non-zero border radius, the shape DSH gives the input * panel. Returns null when the host markup stops matching; callers then fall * back to {@link getComposerElement}. */ export declare function getComposerInputElement(frame: HTMLElement | null): HTMLElement | null; /** Resolve the active `conversation.view` id from the host's semantic tablist. * The DOM intentionally carries no view id, but it renders buttons in the * exact order of the slot ledger. Indexing into that same live ledger avoids * translated-label matching and remains compatible with third-party tabs. */ export declare function getActiveConversationViewId(frame: HTMLElement | null, viewIds: string[]): string | null;