///
///
/**
* 文件输入接口
*/
export interface FileInput {
/** 文件路径 */
path?: string;
/** 文件缓冲区 */
buffer?: Buffer;
}
/**
* 使用 TinyPNG 压缩文件
* @param file - 输入文件
* @returns 压缩后的文件路径或缓冲区
* @throws 如果所有 API Key 都失败则抛出错误
*/
export declare function compressFileUseTinypng(file: FileInput): Promise;