import { DirectusComment } from "../../../schema/comment.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/comments.d.ts type UpdateCommentOutput, Item extends object = DirectusComment> = ApplyQueryFields; /** * Update multiple existing comments. * @param keysOrQuery The primary keys or a query * @param item * @param query * @returns Returns the comment objects for the updated comments. * @throws Will throw if keys is empty */ declare const updateComments: >>(keysOrQuery: DirectusComment["id"][] | Query>, item: NestedPartial>, query?: TQuery) => RestCommand[], Schema>; /** * Update multiple comments as batch. * @param items * @param query * @returns Returns the comment objects for the updated comments. */ declare const updateCommentsBatch: >>(items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Update an existing comment. * @param key * @param item * @param query * @returns Returns the comment object for the updated comment. * @throws Will throw if key is empty */ declare const updateComment: >>(key: DirectusComment["id"], item: NestedPartial>, query?: TQuery) => RestCommand, Schema>; //#endregion export { UpdateCommentOutput, updateComment, updateComments, updateCommentsBatch }; //# sourceMappingURL=comments.d.ts.map