import { Dayjs } from 'dayjs'; import { Id } from './memi'; /** 从用户输入的 createdAt 中提取出关联数据,注意,这里的数据是包头不包尾 */ export declare function getDateRangeFromStr(createdAt: string, createdAtRange?: [Dayjs, Dayjs]): string[]; export interface QueryCondition { creatorId?: Id; tenantId?: Id; date?: string; from?: string; to?: string; } /** 是否为隐私模式 */ export declare function isSecretMode(): boolean; /** 生成可隐藏的数值 */ export declare const getSecretableNumber: (num: number) => number; /** 生成可隐藏的字符串 */ export declare const getSecretableString: (str: string | number) => string; export declare const getPriceByMathRound: (value: number, r?: number) => number; export declare const disabledPassedDate: (current: any) => boolean; /** 禁用过去的时间 */ export declare const disabledPassedTime: (date: Dayjs) => { disabledHours: () => number[]; disabledMinutes: () => number[]; } | { disabledHours: () => number[]; disabledMinutes?: undefined; }; export declare function encodeModelThumbnailUrl(url: string, width?: number): string; /** 确保是 HTTPS */ export declare const ensureHttps: (url: string) => string; /** * 时间长度格式化 * xx天 xx小时 xx分钟 xx秒 * @param v 毫秒 * @returns */ export declare const getDurationFormat: (v: number) => string; /** 判断是否为本地宇明 */ export declare function isLocalHost(str?: string): boolean;