import { DirectusComment } from "../../../schema/comment.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/read/comments.d.ts type ReadCommentOutput, Item extends object = DirectusComment> = ApplyQueryFields; /** * List all Comments that exist in Directus. * @param query The query parameters * @returns An array of up to limit Comment objects. If no items are available, data will be an empty array. */ declare const readComments: >>(query?: TQuery) => RestCommand[], Schema>; /** * List an existing comment by primary key. * @param key The primary key of the dashboard * @param query The query parameters * @returns Returns a Comment object if a valid primary key was provided. * @throws Will throw if key is empty */ declare const readComment: >>(key: DirectusComment["id"], query?: TQuery) => RestCommand, Schema>; //#endregion export { ReadCommentOutput, readComment, readComments }; //# sourceMappingURL=comments.d.ts.map