/** * Human-friendly name + description for an extension, derived from its path/files. * * Extensions are commonly laid out as `/index.ts` (or `.js`/`.mjs`), so the basename * is the useless `index.ts` for every one of them. Consumers (the profile editor, resource listings, * the "loaded capabilities" surface) should show the *extension name* and a description instead — the * same affordance skills get from their frontmatter. These helpers centralize that derivation. */ /** * Display name for an extension at `extensionPath`. For the `/index.` layout the folder * name is the extension name; otherwise the file stem is used. Never returns the bare `index.`. */ export declare function getExtensionDisplayName(extensionPath: string): string; /** * Best-effort one-line description for an extension. Tries, in order: `package.json` `description`, * the first heading/line of a sibling `README.md`, then the first line of a leading block/JSDoc * comment in the entry file. Returns `undefined` when nothing usable is found. */ export declare function getExtensionDescription(extensionPath: string): string | undefined; //# sourceMappingURL=extension-metadata.d.ts.map