import type { CSSProperties } from 'react'; import { TCompatibleGradientColorDefaultType, TGradientColorDefaultType } from "@/components/types"; export declare const TIME_FORMAT = "YYYY-MM-DD HH:mm:ss"; export declare const serverUrl = "https://auto.omicdn.com/v1/images"; /** * 执行数据源刷新的通用函数 * @param operation - 操作配置对象 * @param globalApiData - 全局API数据 */ export declare function executeRefresh(operation: any, globalApiData: any): Promise; /** * 处理接口调用和数据刷新的公共方法 * @param operation - 操作配置对象 * @param globalApiData - 全局API数据 * @param apis - API方法集合 * @param showToast - Toast提示函数(可选) * @param t - 多语言翻译函数(可选) */ export declare function handleApiCall(operation: any, globalApiData: any, apis: any, showToast: (message: string) => void, t: (key: string) => string, setGlobalApiData: (data: any) => void): Promise; export declare function formatTime(fmt: string, dateObj: any): string; export declare const scrollPlugin: (elementId: any, bs: any) => void; export declare const genBgColor: (colorConfig: TGradientColorDefaultType) => { backgroundColor: string; backgroundImage?: undefined; } | { backgroundImage: string; backgroundColor?: undefined; }; export declare const normalizeGradientColorConfig: (colorConfig?: TCompatibleGradientColorDefaultType, fallback?: string) => TGradientColorDefaultType; export declare const genGradientColor: (colorConfig?: TCompatibleGradientColorDefaultType) => string; export declare const getGradientFirstColor: (colorConfig?: TCompatibleGradientColorDefaultType) => string; export declare const isVisibleGradientColor: (colorConfig?: TCompatibleGradientColorDefaultType) => boolean; export declare const genGradientTextStyle: (colorConfig?: TCompatibleGradientColorDefaultType) => CSSProperties; export declare function time_format(time: any, format?: string): string; export declare const joinParams: (params: Record) => string; export declare const isChinese: (str: string) => boolean; export declare const getPageData: (pointData: any[], tabProValueList: Record, visitList?: string[]) => any; export declare const translateText: (text: string, t: (key: string) => string, gap?: string) => string; export declare const useQuery: (search: string) => Record; export declare const transDesimal: (value: number | undefined) => number; export declare const transDesimalParam: (value: number) => number;