import { VodCheckpointRecord } from "../types"; /** * 生成默认 checkpoint 文件路径 */ export declare function getDefaultCheckpointFilePath(spaceName: string, filePath: string): string; /** * Checkpoint 信息 */ export interface CheckpointRichInfo { filePath?: string; record?: VodCheckpointRecord; } /** * 加载 checkpoint */ export declare function loadCheckpoint(checkpoint: string | VodCheckpointRecord | undefined): Promise; /** * 保存 checkpoint */ export declare function saveCheckpoint(filePath: string | undefined, record: VodCheckpointRecord): Promise; /** * 删除 checkpoint */ export declare function removeCheckpoint(filePath: string | undefined): Promise; /** * 校验 checkpoint 有效性 */ export declare function validateCheckpoint(record: VodCheckpointRecord | undefined, filePath?: string, fileSize?: number, partSize?: number): Promise;