import type { Lix } from "../lix/open-lix.js"; import type { LixVersion } from "./schema-definition.js"; /** * Switches the current Version to the given Version. * * The Version must already exist before calling this function. * * @example * ```ts * await switchVersion({ lix, to: otherVersion }); * ``` * * @example * Switching to a newly created version. * * ```ts * await lix.db.transaction().execute(async (trx) => { * const newVersion = await createVersion({ lix: { db: trx }, commit: currentVersion }); * await switchVersion({ lix: { db: trx }, to: newVersion }); * }); * ``` */ export declare function switchVersion(args: { lix: Lix; to: Pick; }): Promise; //# sourceMappingURL=switch-version.d.ts.map