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