UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

19 lines (18 loc) 723 B
import { ElementType, ReactNode } from 'react'; import type { PageContextValue } from "../Page/PageContext"; import { CDN, CdnApi } from "../utils/genCdnUrl"; type CdnFn = ({ pkg, version, path }: CdnApi) => string; export interface Config { customCdnFn?: CdnFn; imgAs?: ElementType; proxy?: CDN | 'custom'; Link?: PageContextValue['Link']; } export declare const ConfigContext: import("react").Context<Config | null>; export declare const ConfigProvider: import("react").NamedExoticComponent<{ children: ReactNode; config: Config; }>; export declare const useCdnFn: () => CdnFn; export declare const useLink: () => import("react").FC<any> | typeof import("react").Component | undefined; export {};