import { DirectusPreset } from "../../../schema/preset.js"; import { NestedPartial } from "../../../types/utils.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/update/presets.d.ts type UpdatePresetOutput, Item extends object = DirectusPreset> = ApplyQueryFields; /** * Update multiple existing presets. * @param keys * @param item * @param query * @returns Returns the preset objects for the updated presets. * @throws Will throw if keys is empty */ declare const updatePresets: >>(keys: DirectusPreset["id"][], item: NestedPartial>, query?: TQuery) => RestCommand[], Schema>; /** * Update multiple presets as batch. * @param items * @param query * @returns Returns the preset objects for the updated presets. */ declare const updatePresetsBatch: >>(items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Update an existing preset. * @param key * @param item * @param query * @returns Returns the preset object for the updated preset. * @throws Will throw if key is empty */ declare const updatePreset: >>(key: DirectusPreset["id"], item: NestedPartial>, query?: TQuery) => RestCommand, Schema>; //#endregion export { UpdatePresetOutput, updatePreset, updatePresets, updatePresetsBatch }; //# sourceMappingURL=presets.d.ts.map