UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

31 lines (30 loc) 891 B
import { MotionComponentType } from "../MotionProvider/index.mjs"; import { TranslationResourcesInput } from "../i18n/types.mjs"; import { CDN, CdnApi } from "../utils/genCdnUrl.mjs"; import * as react41 from "react"; import { ElementType, ReactNode } from "react"; //#region src/ConfigProvider/index.d.ts interface Config { aAs?: ElementType; customCdnFn?: CdnFn; imgAs?: ElementType; imgUnoptimized?: boolean; proxy?: CDN | 'custom'; } interface ConfigProviderProps { children: ReactNode; config?: Config; locale?: string; motion: MotionComponentType; resources?: TranslationResourcesInput; } declare const ConfigProvider: react41.NamedExoticComponent<ConfigProviderProps>; type CdnFn = ({ pkg, version, path }: CdnApi) => string; declare const useCdnFn: () => CdnFn; //#endregion export { Config, ConfigProvider, useCdnFn }; //# sourceMappingURL=index.d.mts.map