/** * The docs the dev server has read from the project's own source, one entry * per transformed module, joined into `ComponentDocs` on demand. * * Inheritance is resolved at read time rather than when a module is stored: * a base class may be transformed after its subclass, and an edit to it * should show in every subclass without re-reading them. A superclass is * followed while it is in the index (same module by name, another module * through the import id the plugin resolved) and the walk stops at the first * one that isn't, such as `LitElement`. A class's mixins come before its * superclass, outermost first, each followed the same way and stepped over * when it isn't in the index (`SignalWatcher` from a package). Members a * subclass redeclares win. */ import type { ComponentDocs } from '../../types/component-docs.js'; import type { ModuleDocs } from './extract.js'; export interface SourceDocsIndex { /** * Stores a module's classes, replacing what it held before. * * @param superclassIds Each imported superclass or mixin specifier, * resolved to a module id; specifiers that didn't resolve are left out. */ set(id: string, module: ModuleDocs, superclassIds: ReadonlyMap): void; delete(id: string): void; get(tagName: string): ComponentDocs | undefined; } /** * @param relative Turns a module id into the path the panel shows, relative * to the Vite root. */ export declare const createSourceDocsIndex: (relative: (id: string) => string) => SourceDocsIndex; //# sourceMappingURL=source-index.d.ts.map