import { YcGlobalConfig, YcCdnConfig, AuthCheckFn, TranslateFn } from './type'; import { Ref } from 'vue'; /** * 获取 Yc 全局配置 * @returns Yc 全局配置对象 */ export declare function useYcConfig(): YcGlobalConfig; /** * 获取 CDN 配置 * @returns CDN 配置对象 */ export declare function useYcCdn(): YcCdnConfig; /** * 获取 CDN 资源 URL * @param type 资源类型:'base' | 'images' | 'fonts' | 'icons' * @param path 资源路径(可选) * @returns 完整的 CDN URL * * @example * ```ts * const { getCdnUrl } = useYcCdnUrl() * const iconUrl = getCdnUrl('images', 'table_value_setting.svg') * // => https://staticcdn.jinbizhihui.com/images/saas-basic-platform/table_value_setting.svg * ``` */ export declare function useYcCdnUrl(): { getCdnUrl: (type?: keyof YcCdnConfig, path?: string) => string; }; /** * 获取权限检查函数 * @returns hasAuth 函数 */ export declare function useYcAuth(): AuthCheckFn; /** * 获取操作权限检查函数 * @returns hasPerms 函数 */ export declare function useYcPerms(): AuthCheckFn; /** * 获取页面搜索显示状态 * @returns 响应式的 showPageSearch 引用 */ export declare function useYcShowPageSearch(): Ref; /** * 获取国际化翻译函数 * @returns t 函数 */ export declare function useYcTranslate(): TranslateFn; /** * 获取组件默认配置 * @param componentName 组件名称 * @returns 组件默认配置 */ export declare function useYcComponentConfig>(componentName: K): NonNullable[K];