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 LyraHeadingLevel}from'../../../internal/heading-level.js';import type{AnchorResultDetail,TextSelectDetail}from'../document-viewer/anchors.js';export interface LyraContactViewerEventMap extends LyraTextViewerTargetEventMap{'lr-render-error':CustomEvent<{error:unknown;}>;'lr-search-change':CustomEvent;'lr-anchor-result':CustomEvent;'lr-text-select':CustomEvent;}declare class LyraContactViewerBase extends LyraElement{}declare const LyraContactViewer_base:Omit &(new(...args:ConstructorParameters)=>InstanceType &import("../../../lyra.js").LyraTextViewerTarget&{renderAnchorLiveRegion():unknown;}); /** * Fetches a vCard document and renders one accessible card per contact. Contact names retain * level-three heading semantics by default; set `heading-level` from `1`–`6` to fit the surrounding * outline, or `none` for visual-only names. At most 250 contacts and 2 MiB of rendered contact text * are accepted so eager DOM remains bounded while search, selection and text-quote anchors cover * every accepted contact. The inherited fragment path performs an exact DOM `id` lookup, but * generated contact cards have no fragment ids; such a jump reports `found: false`. * * @customElement lr-contact-viewer * @event lr-render-error - Fired when fetching or parsing 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 contacts. `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 contact - One rendered contact card. * @csspart contact-name - A contact's name heading at the configured semantic level. * @csspart contact-org - A contact's organization line, when present. * @csspart contact-tel - A contact's phone number list, when present. * @csspart contact-email - A contact's email list, when present. * @csspart contact-adr - A contact's address list, when present. * @csspart spinner - The visible tokenized loading treatment and ordinary text label. * @csspart error - The error region. * @cssprop [--lr-contact-viewer-max-height=none] - Maximum block size of the scrollable body before it scrolls internally. Also settable via the `max-height` property. * @status stable * @since 4.0.0 */ export declare class LyraContactViewer extends LyraContactViewer_base{static styles:import("lit").CSSResultGroup[]; /** URL to fetch and parse as vCard text. */ src:string; /** Optional display name for the source document. It names `[part='base']` when host * `aria-label` is absent, before the localized fallback. A non-empty host label remains on the * host; an explicitly empty one is preserved on the shadow owner. */ name:string; /** Semantic level of each rendered contact name. Use `none` for visual-only names; invalid * untyped values use level 3. */ headingLevel:LyraHeadingLevel; /** 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 the rendered contact cards. */ search(query:string):Promise;searchNext():Promise;searchPrevious():Promise;clearSearch():void;private fetchState;private generation;private lastLoadSrc;private readonly announcements;connectedCallback():void;disconnectedCallback():void;adoptedCallback():void;protected updated(changed:PropertyValues):void;private load;private formatList;private formatAddress;private formatType;private formatTypedValue;private renderContact;private renderBody;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-contact-viewer':LyraContactViewer;}}export{};