/** * Reads a Custom Elements Manifest (`custom-elements.json`, schema 2.x) into * the flat per-tag `ComponentDocs` the panel shows. * * Manifests are written by tools and by hand, and a dependency's file is not * ours to trust: every read here is defensive. Anything that isn't the shape * the schema promises is skipped rather than thrown on, so one odd member * costs that member, not the component or the manifest. Optional keys are * left off instead of set to `undefined`, which keeps the result clean for * the JSON-serialised RPC it travels over. * * Pure and browser-safe: it takes the parsed JSON, not a path. */ import type { ComponentDocs } from '../../types/component-docs.js'; /** * Every custom element a manifest declares, as `ComponentDocs`. Never throws: * input that isn't a manifest gives `[]`, and malformed modules, declarations * or members are skipped. * * @param manifest The parsed `custom-elements.json`. * @param origin Where it came from; each result's `origin.module` is added * from the declaring module's path. */ export declare const docsFromManifest: (manifest: unknown, origin: { package?: string; manifest: string; }) => ComponentDocs[]; //# sourceMappingURL=manifest.d.ts.map