UNPKG

@lobehub/ui

Version:

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

18 lines (17 loc) 590 B
import { ElementType, ReactNode } from 'react'; import { CDN, CdnApi } from "../utils/genCdnUrl"; export interface Config { aAs?: ElementType; customCdnFn?: CdnFn; imgAs?: ElementType; imgUnoptimized?: boolean; proxy?: CDN | 'custom'; } export declare const ConfigContext: import("react").Context<Config | null>; declare const ConfigProvider: import("react").NamedExoticComponent<{ children: ReactNode; config: Config; }>; export type CdnFn = ({ pkg, version, path }: CdnApi) => string; export declare const useCdnFn: () => CdnFn; export default ConfigProvider;