import { CollectionType, RegularCollections } from "../../../types/schema.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query, QueryItem } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/read/items.d.ts type ReadItemOutput, TQuery extends Query>> = ApplyQueryFields, TQuery["fields"]>; /** * List all items that exist in Directus. * * @param collection The collection of the items * @param query The query parameters * * @returns An array of up to limit item objects. If no items are available, data will be an empty array. * @throws Will throw if collection is a core collection * @throws Will throw if collection is empty */ declare const readItems: , const TQuery extends Query>>(collection: Collection, query?: TQuery) => RestCommand[], Schema>; /** * Get an item that exists in Directus. * * @param collection The collection of the item * @param key The primary key of the item * @param query The query parameters * * @returns Returns an item object if a valid primary key was provided. * @throws Will throw if collection is a core collection * @throws Will throw if collection is empty * @throws Will throw if key is empty */ declare const readItem: , const TQuery extends QueryItem>>(collection: Collection, key: string | number, query?: TQuery) => RestCommand, Schema>; //#endregion export { ReadItemOutput, readItem, readItems }; //# sourceMappingURL=items.d.ts.map