fuc-new/doc/node_modules/@vuepress-plume/plugin-search/lib/node/index.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

24 lines
663 B
TypeScript

import { SearchOptions, SearchPluginOptions } from "../shared/index.js";
import { App, Plugin } from "vuepress/core";
export * from "../shared/index.js";
//#region src/node/prepareSearchIndex.d.ts
interface SearchIndexOptions {
app: App;
searchOptions: SearchOptions;
isSearchable: SearchPluginOptions["isSearchable"];
}
declare function prepareSearchIndex({
app,
isSearchable,
searchOptions
}: SearchIndexOptions): Promise<void>;
//#endregion
//#region src/node/searchPlugin.d.ts
declare function searchPlugin({
locales,
isSearchable,
...searchOptions
}?: SearchPluginOptions): Plugin;
//#endregion
export { prepareSearchIndex, searchPlugin };