import { AllCollections } from "../../../types/schema.cjs"; import { RestCommand } from "../../types.cjs"; //#region src/rest/commands/schema/snapshot.d.ts type SchemaSnapshotOutput = { /** `1` for a full snapshot, `2` for a partial (collection-scoped) snapshot. */ version: number; directus: string; vendor: string; collections: Record[]; fields: Record[]; systemFields: Record[]; relations: Record[]; }; /** * Optional collection scoping for {@link schemaSnapshot}. Omit for a full snapshot, or provide exactly one of * `includeCollections` / `excludeCollections` for a partial snapshot. */ type SchemaSnapshotOptions = { /** * Restrict the snapshot to these collections (partial snapshot). Mutually exclusive with `excludeCollections`. */ includeCollections: AllCollections[]; } | { /** * Exclude these collections from the snapshot (partial snapshot). Mutually exclusive with `includeCollections`. */ excludeCollections: AllCollections[]; }; /** * Retrieve the current schema. This endpoint is only available to admin users. * * @param options Optional collection scoping (partial). Omit for a full snapshot. * @param options.includeCollections Restrict the snapshot to these collections. * @param options.excludeCollections Exclude these collections from the snapshot. * * @returns Returns the JSON object containing schema details. * @throws Will throw if both `includeCollections` and `excludeCollections` are provided. */ declare const schemaSnapshot: (options?: SchemaSnapshotOptions) => RestCommand; //#endregion export { SchemaSnapshotOptions, SchemaSnapshotOutput, schemaSnapshot }; //# sourceMappingURL=snapshot.d.cts.map