import { type StartPipelineResult } from '../landun/start'; /** * 白名单用户项接口 */ export interface WhiteUserItem { /** 用户 OpenID */ openId: string; /** 白名单类型 */ whiteType: string; /** 开始时间戳 */ startTime: number; /** 有效时长(秒) */ validTime: number; /** 申请者 */ applyUser?: string; [key: string]: any; } /** * 文件信息接口 */ export interface FileInfo { /** 文件名 */ fileName: string; /** 文件内容(OpenID 列表) */ fileContent: string[]; /** 显示标签 */ label?: string; /** CDN 地址 */ cdn?: string; } /** * 更新 COS 数据库选项 */ export interface UpdateCosByDbOptions { /** 构建 ID */ buildId?: string; /** 是否来自定时任务 */ fromCron?: boolean; /** 白名单用户数据库实例 */ WhiteUserDB: any; /** 启动流水线函数 */ startPipeline: (pipelineId: string, data: any) => Promise; } /** * 根据数据库更新白名单用户 COS 文件 * @param options - 更新选项 */ export declare function updateWhiteUserCosByDb(options?: UpdateCosByDbOptions): Promise;