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

13 lines
545 B
TypeScript

import { ComputedRef, MaybeRef, ShallowRef } from "vue";
import { SearchBoxLocales, SearchLocaleOptions } from "../../shared/index.js";
//#region src/client/composables/locale.d.ts
declare function useLocale(locales: MaybeRef<SearchBoxLocales>): ComputedRef<Partial<SearchLocaleOptions>>;
//#endregion
//#region src/client/composables/searchIndex.d.ts
type SearchIndexData = Record<string, () => Promise<{
default: string;
}>>;
declare function useSearchIndex(): ShallowRef<SearchIndexData>;
//#endregion
export { useLocale, useSearchIndex };