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