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 LyraIncludeMode}from'./include-resource.js';import type{AnchorResultDetail,TextSelectDetail}from'../document-viewer/anchors.js';export type{LyraIncludeMode}from'./include-resource.js'; /** * Why a `lr-include-error` fired instead of a successful `lr-load`: * - `'blocked-url'` — `src` failed the shared `safeFetchUrl()` scheme * allowlist; `fetch()` was never called. * - `'network'` — `fetch()` itself rejected (DNS/CORS/connection failure). * - `'http'` — the fetch completed but the response was not `ok`. * - `'missing-sanitizer'` — the fetch succeeded but the optional `dompurify` * peer failed to load, so the fragment could not be sanitized. * - `'resource-too-large'` — the source markup exceeded Include's 2 MiB * size cap. * - `'missing-fragment'` — a requested same-page or remote fragment id was * not present after sanitization. */ export type LyraIncludeErrorReason='blocked-url'|'network'|'http'|'missing-sanitizer'|'resource-too-large'|'missing-fragment'; /** The detail both spellings of Include's failure notification carry. */ export interface LyraIncludeErrorDetail{status:number;reason:LyraIncludeErrorReason;error?:unknown;}export interface LyraIncludeEventMap extends LyraTextViewerTargetEventMap{'lr-load':CustomEvent<{src:string;}>;'lr-include-error':CustomEvent; /** * Shoelace spells this failure `sl-error` where Web Awesome spells it `wa-include-error`, so * both migrated spellings resolve here. Neither is deprecated. */ 'lr-error':CustomEvent;'lr-search-change':CustomEvent;'lr-anchor-result':CustomEvent;'lr-text-select':CustomEvent;}declare class LyraIncludeBase extends LyraElement{}declare const LyraInclude_base:Omit &(new(...args:ConstructorParameters)=>InstanceType &import("../../../lyra.js").LyraTextViewerTarget&{renderAnchorLiveRegion():unknown;}); /** * `` loads an HTML fragment from `src` and transcludes it into * the page as sanitized light-DOM content, so the fragment participates in * the surrounding page's CSS cascade exactly like a native server-side * include — unlike ``, which renders a foreign document * inside an isolated preview card. * * Loaded markup always passes through the shared DOMPurify-backed * sanitizer (`loadHtmlSanitizer()`, the same loader `` * uses) before it ever touches `innerHTML` — there is no `allow-scripts` * escape hatch here, unlike the Web Awesome/Shoelace components this element * otherwise mirrors: their raw, unsanitized injection (with an opt-in to * actually re-execute embedded `