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