import { AnyObject } from '../../../../shared/types'; import { SessionItem } from '../types'; export declare const $message: import("naive-ui/es/message").MessageApi; export declare function formatTime(dateStr: string): { siderMsgTime: any; msgTime: any; recordTime: string; }; export declare function listSort(list: SessionItem[]): SessionItem[]; export declare function transformMessage(content: AnyObject): any; export declare function getAVTime(msg: string): string; export declare function simplifyMessage(lastMessage: AnyObject): any; export declare function downloadFile(msg: string): void; export declare function base64ToFile(base64: string): Promise; export declare function isAudioOrVideoMessage(message: AnyObject): boolean; export declare function formatSeconds(seconds: number): string; export declare function isGroup(session: AnyObject): boolean; export declare function getForwardTitle(content: AnyObject): string | undefined; export declare function isDoctorRole(type: string): boolean; export declare function getRoleName(type: string): string; export declare function getFileType(msg: string): string; export declare function getDetail(item: AnyObject, isShowSize?: boolean): string; export declare function showAudioAndVideoRecord(chatMessageType: string): "语音通话" | "视频通话"; export declare function formatJsonstr(obj: AnyObject | string, type: string): any; export declare function removeImgBySrc(htmlString: string, targetSrc: string): string; export declare function ensureLeadingSlashIfRelative(str?: string): string;