import { DirectusRole } from "../../../schema/role.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/roles.d.ts type UpdateRoleOutput, Item extends object = DirectusRole> = ApplyQueryFields; /** * Update multiple existing roles. * @param keys * @param item * @param query * @returns Returns the role objects for the updated roles. * @throws Will throw if keys is empty */ declare const updateRoles: >>(keys: DirectusRole["id"][], item: NestedPartial>, query?: TQuery) => RestCommand[], Schema>; /** * Update multiple roles as batch. * @param items * @param query * @returns Returns the role objects for the updated roles. */ declare const updateRolesBatch: >>(items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Update an existing role. * @param key * @param item * @param query * @returns Returns the role object for the updated role. * @throws Will throw if key is empty */ declare const updateRole: >>(key: DirectusRole["id"], item: NestedPartial>, query?: TQuery) => RestCommand, Schema>; //#endregion export { UpdateRoleOutput, updateRole, updateRoles, updateRolesBatch }; //# sourceMappingURL=roles.d.ts.map