import { DirectusField } from "../../../schema/field.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/read/fields.d.ts type ReadFieldOutput> = ApplyQueryFields; /** * List the available fields. * @param query The query parameters * @returns An array of field objects. */ declare const readFields: () => RestCommand[], Schema>; /** * List the available fields in a given collection. * @param collection The primary key of the field * @returns * @throws Will throw if collection is empty */ declare const readFieldsByCollection: (collection: DirectusField["collection"]) => RestCommand[], Schema>; /** * * @param key The primary key of the dashboard * @param query The query parameters * @returns * @throws Will throw if collection is empty * @throws Will throw if field is empty */ declare const readField: (collection: DirectusField["collection"], field: DirectusField["field"]) => RestCommand, Schema>; //#endregion export { ReadFieldOutput, readField, readFields, readFieldsByCollection }; //# sourceMappingURL=fields.d.ts.map