import type { Plugin } from '@custom-elements-manifest/analyzer';
import type { PfeConfig } from '../config.js';
/**
 * Adds demo entries to element declarations
 *
 * Tries to determine a custom element manifest module's 'primary' element by:
 * - in a single-package-repo: taking the path part after `/elements`
 * - in a monorepo: reading the package JSON of the local package and taking the part after the scope
 *
 * The primary element's demo is it's own tag name, e.g.
 * `/elements/pfe-jazz-hands/demo/pfe-jazz-hands.html` would be associated with
 * `/elements/pfe-jazz-hands/pfe-jazz-hands.js`.
 *
 * Demo files which match any tag name in the manifest will be associated with that tag, e.g.
 * `/elements/pfe-jazz-hands/demo/pfe-jazz-shimmy.html` would be associated with
 * `/elements/pfe-jazz-hands/pfe-jazz-shimmy.js`.
 *
 * Any remaining demos will all be added to the primary element's list, e.g.
 * `/elements/pfe-jazz-hands/demo/accessibility.html` would be associated with
 * `/elements/pfe-jazz-hands/pfe-jazz-hands.js`
 */
export declare function demosPlugin(options?: PfeConfig): Plugin;
