import { VideoInfo } from '../ffmpeg/index.js'; /** * 文件配置信息接口 */ export interface FileConfig { /** 文件大小(带单位) */ size: string; /** 文件大小(字节) */ sizeInBytes: number; /** 文件编码格式 */ encoding: string; /** 文件扩展名 */ extension: string; /** 文件是否存在 */ exists: boolean; /** 视频信息(仅当文件是视频时存在) */ videoInfo?: VideoInfo; } /** * 获取文件配置信息 * @param filePath 文件绝对路径 * @returns 文件配置信息 */ export declare function getFileConfig(filePath: string): FileConfig; /** * 获取文件配置信息(异步版本) * @param filePath 文件绝对路径 * @returns Promise */ export declare function getFileConfigAsync(filePath: string): Promise;