13 lines
545 B
TypeScript
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 }; |