/** * Component docs for a host with no disk: the Custom Elements Manifests the * inspected page itself advertises with * ``, the discovery convention * Web Component DevTools proposed (its RFC #76). The browser extension uses * it; the Vite plugin adds such links to the pages it serves. * * Browser-safe and free of extension APIs: the host says how to read the * page's links (already absolute, so a `` is honoured), how to fetch * one, and which URLs it may fetch at all. */ import type { ComponentDocsArgs, ComponentDocsResult } from '../devframe/protocol.js'; /** The `rel` a page names its manifests with. */ export declare const MANIFEST_LINK_REL = "custom-elements-manifest"; export interface LinkedDocsOptions { /** The absolute URLs of the page's manifest links, in document order. */ links(): Promise; /** The text at `url`, or `undefined` when it can't be read. */ fetchText(url: string): Promise; /** Whether the host may fetch `url`; a refused one is skipped. */ allows(url: string): boolean; } export interface LinkedDocsSource { componentDocs(args: ComponentDocsArgs): Promise; /** Forget fetched manifests, as when the page navigates. */ reset(): void; } export declare const createLinkedDocsSource: (options: LinkedDocsOptions) => LinkedDocsSource; //# sourceMappingURL=linked.d.ts.map