/** * @author WMXPY * @namespace SavingTarget * @description Perform */ import { ImbricateOriginManager } from "../origin/origin-manager"; import { SAVING_TARGET_TYPE, SavingTarget } from "./definition"; export type PerformImbricateSavingTargetOptions = { readonly force: boolean; readonly cancelIfNoChange: boolean; readonly cleanup: boolean; }; /** * Perform imbricate saving target * - If cancelIfNoChange is true, will cancel the saving if the content is not changed * - If cancelIfNoChange is false, will always save the content * - If force is true, will save the content even if the original digest is not matched * - If force is false, will cancel the saving if the original digest is not matched * - If cleanup is true, will cleanup after saving * - If cleanup is false, will not cleanup after saving * * @param savingTarget saving target * @param originalDigest original digest * @param content content * @param originManager origin manager * @param cancelIfNoChange cancel if no change * @param cleanup cleanup after saving * * @returns whether the saving performed or canceled, true if performed, false if canceled */ export declare const performImbricateSavingTarget: (savingTarget: SavingTarget, originalDigest: string, content: string, originManager: ImbricateOriginManager, options?: Partial) => Promise;