test02/node_modules/@vuepress/plugin-theme-data/lib/client/composables/useThemeLocaleData.d.ts
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

12 lines
615 B
TypeScript

import type { ComputedRef, InjectionKey } from 'vue';
import type { RouteLocale } from 'vuepress/client';
import type { ThemeData } from '../../shared/index.js';
export type ThemeLocaleDataRef<T extends ThemeData = ThemeData> = ComputedRef<T>;
export declare const themeLocaleDataSymbol: InjectionKey<ThemeLocaleDataRef>;
export declare const useThemeLocaleData: <T extends ThemeData = ThemeData>() => ThemeLocaleDataRef<T>;
/**
* Merge the locales fields to the root fields
* according to the route path
*/
export declare const resolveThemeLocaleData: (theme: ThemeData, routeLocale: RouteLocale) => ThemeData;