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'; /** The three structural container tags accepted by the GeoJSON bridge. */ export type GeoJsonTypeTag='Feature'|'FeatureCollection'|'GeometryCollection';export interface LyraGeoJsonViewerEventMap extends LyraTextViewerTargetEventMap{'lr-render-error':CustomEvent<{error:unknown;}>;'lr-search-change':CustomEvent;'lr-anchor-result':CustomEvent;'lr-text-select':CustomEvent;}declare class LyraGeoJsonViewerBase extends LyraElement{}declare const LyraGeoJsonViewer_base:Omit &(new(...args:ConstructorParameters)=>InstanceType &import("../../../lyra.js").LyraTextViewerTarget&{renderAnchorLiveRegion():unknown;}); /** * `` — document-registry bridge rendering a fetched GeoJSON file through * ``'s `dataLayers`. The separately exported `` compatibility class * preserves the earlier tag without sharing a custom-elements constructor. * The inherited fragment path performs an exact DOM `id` lookup, but the generated metadata, * status, and map output define no fragment ids; such a jump reports `found: false`. Use a * text-quote anchor for the serialized metadata. * * @customElement lr-geojson-viewer * @event lr-render-error - Fetch, parse, shape-validation, or missing-map-capability failure. * `detail: { error }`. A missing optional MapLibre peer leaves the serialized metadata fallback * visible while reporting the degraded map capability. * @event {CustomEvent} lr-search-change - Fired whenever searchable * metadata 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 * searchable metadata. `detail: { text: string; anchor: LyraAnchor | null; rects: DOMRect[] }`. * Bubbling, composed, and non-cancelable. * @csspart base - The root container with explicit `aria-busy`. It owns the named region in * non-map states, the missing-peer fallback, and while a lazy map initializes; the loaded map * canvas then owns that landmark. * @csspart status - The ordinary feature-count line; a successful transition announces through * the shared document-level polite region. * @csspart metadata - Searchable, selectable serialized GeoJSON metadata; scrolls inline rather * than widening a narrow allocation. * @csspart missing-library - The missing-maplibre-gl callout shown alongside the json-viewer fallback. * @csspart error - Visible ordinary error text; transitions announce through the shared * document-level assertive region. * @csspart spinner - The decorative loading placeholder and its ordinary visually-hidden label; * transitions announce through the shared document-level polite region. * @status stable * @since 9.0.0 */ export declare class LyraGeoJsonViewer extends LyraGeoJsonViewer_base{static styles:import("lit").CSSResultGroup[];src:string; /** Accessible-name fallback for the current region owner: the root in non-map states, or the * loaded map canvas when the optional peer is available. */ name:string; /** Shared search/anchor surface for the ordinary-DOM serialized feature metadata and status * text, independent of whether the optional map peer is available. */ search(query:string):Promise;searchNext():Promise;searchPrevious():Promise;clearSearch():void;private loadState;private mapReady;private generation;private lastLoadSrc;private registeredMap;private readonly announcements;protected textContentRoot():Element|null;private stopChildEvent;private onMapCanvasReady;private syncMapCanvasReadyCallback;connectedCallback():void;disconnectedCallback():void;adoptedCallback():void;protected updated(changed:PropertyValues):void;private load;private failWithLocalizedMessage;private get effectiveLabel();private featureCountStatus;private renderBody;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-geojson-viewer':LyraGeoJsonViewer;}}export{};