import type { Wiki } from '../types.js'; import { dcFandomPlugin } from './dc-fandom.js'; import { marvelFandomPlugin } from './marvel-fandom.js'; /** * Registry of built-in plugins, keyed by plugin name. Each entry provides the wiki's * base URL and a factory that extends a base {@link Wiki} client with plugin-specific methods. */ export declare const PLUGINS: { readonly 'dc-fandom': { readonly url: "https://dc.fandom.com"; readonly factory: typeof dcFandomPlugin; }; readonly 'marvel-fandom': { readonly url: "https://marvel.fandom.com"; readonly factory: typeof marvelFandomPlugin; }; }; /** Name of a registered plugin, as passed via `wiki({ plugin: ... })`. */ export type PluginName = keyof typeof PLUGINS; /** The additional methods a plugin `K` adds to the base {@link Wiki} client. */ export type PluginReturn = ReturnType<(typeof PLUGINS)[K]['factory']>; /** A wiki client extended by any registered plugin — the return type of `wiki({ plugin: ... })` for some plugin. */ export type WikiPlugin = { [K in PluginName]: Wiki & PluginReturn; }[PluginName]; //# sourceMappingURL=index.d.ts.map