import { RestCommand } from "../../types.js"; import { SchemaSnapshotOutput } from "./snapshot.js"; //#region src/rest/commands/schema/diff.d.ts type SchemaDiffOutput = { hash: string; diff: Record; }; type SchemaDiffMode = "merge" | "mirror"; type SchemaDiffOptions = { force?: boolean; mode?: SchemaDiffMode; }; /** * Compare the current instance's schema against the schema snapshot in JSON request body and retrieve the difference. This endpoint is only available to admin users. * @param snapshot JSON object containing collections, fields, and relations to apply. * @param options Optional diff settings. * @param options.force Bypass version and database vendor restrictions. * @param options.mode `mirror` (default) returns all operations; `merge` excludes deletions for an additive diff. * @returns Returns the differences between the current instance's schema and the schema passed in the request body. */ declare const schemaDiff: (snapshot: SchemaSnapshotOutput, options?: SchemaDiffOptions) => RestCommand; //#endregion export { SchemaDiffMode, SchemaDiffOptions, SchemaDiffOutput, schemaDiff }; //# sourceMappingURL=diff.d.ts.map