import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import{type LyraSearchChangeDetail,type LyraTextViewerTargetEventMap}from'../../../internal/text-viewer-target.js';import type{AnchorResultDetail,TextSelectDetail}from'../document-viewer/anchors.js';export interface LyraHtmlViewerEventMap extends LyraTextViewerTargetEventMap{'lr-render-error':CustomEvent<{error:unknown;}>;'lr-search-change':CustomEvent;'lr-anchor-result':CustomEvent;'lr-text-select':CustomEvent;}declare class LyraHtmlViewerBase extends LyraElement{}declare const LyraHtmlViewer_base:Omit &(new(...args:ConstructorParameters)=>InstanceType &import("../../../lyra.js").LyraTextViewerTarget&{renderAnchorLiveRegion():unknown;}); /** * Fetches and safely renders an inline HTML document. The sanitized surface establishes paint * containment so retained author styles cannot position content over the surrounding application. * A nonempty host `aria-label` makes the host the sole named semantic owner; otherwise the loaded * shadow document owns the explicit-empty, `name`, or localized fallback label. * Its passive-document profile is network-silent and non-interactive: links, form controls, and * custom elements are unwrapped to their ordinary text/children where safe; remote navigation and * resource attributes are removed. Images load only inline base64 GIF, JPEG, PNG, or WebP data, * while same-document SVG fragment references may remain; an `` itself never remains in the * rendered preview. * * @customElement lr-html-viewer * @event lr-render-error - Fired when fetching or sanitizing the document fails. * @event {CustomEvent} lr-search-change - * Fired whenever search state changes. `matchCountExact=false` makes the retained count a lower * bound. Bubbling, composed, and non-cancelable. * @event {CustomEvent} lr-anchor-result - Fired after an `anchor` assignment or * `scrollToAnchor()` call is applied. `detail: { found: boolean }`. Bubbling, composed, and * non-cancelable. * @event {CustomEvent} lr-text-select - Fired after a selection ends inside the * rendered document. `detail: { text: string; anchor: LyraAnchor | null; rects: DOMRect[] }`. * Bubbling, composed, and non-cancelable. * @csspart base - The root container with explicit `aria-busy` loading state. * @csspart body - The wrapper around the fetched-state content. * @csspart html - The sanitized HTML document, once loaded. * @csspart spinner - The visible tokenized loading treatment and ordinary text label. * @csspart error - The error region. * @cssprop [--lr-html-viewer-max-height=none] - Maximum block size of `[part="body"]` before it * scrolls internally. The `maxHeight` property sets this token inline on `[part="base"]`. * @status stable * @since 4.0.0 */ export declare class LyraHtmlViewer extends LyraHtmlViewer_base{static styles:import("lit").CSSResultGroup[]; /** URL to fetch and render as sanitized inline HTML. */ src:string; /** Accessible name for the rendered HTML document. */ name:string; /** CSS length that caps the scrollable body. */ /** A CSS `max-height`; invalid values are ignored. */ maxHeight:string; /** Shared text search and anchor-target API for sanitized HTML output. */ search(query:string):Promise;searchNext():Promise;searchPrevious():Promise;clearSearch():void;private fetchState;private generation;private readonly announcements;protected updated(changed:PropertyValues):void;connectedCallback():void;disconnectedCallback():void;adoptedCallback():void;private load;private renderBody;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-html-viewer':LyraHtmlViewer;}}export{};