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