import { NestedPartial, UnpackList } from "../../../types/utils.js"; import { CollectionType } from "../../../types/schema.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/create/items.d.ts type CreateItemOutput> = ApplyQueryFields, TQuery["fields"]>; /** * Create new items in the given collection. * * @param collection The collection of the item * @param items The items to create * @param query Optional return data query * * @returns Returns the item objects of the item that were created. */ declare const createItems: >(collection: Collection, items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Create a new item in the given collection. * * @param collection The collection of the item * @param item The item to create * @param query Optional return data query * * @returns Returns the item objects of the item that were created. */ declare const createItem: >(collection: Collection, item: NestedPartial>, query?: TQuery) => RestCommand, Schema>; //#endregion export { CreateItemOutput, createItem, createItems }; //# sourceMappingURL=items.d.ts.map