import { Result } from "@webiny/feature/api"; import type { AdminUser } from "../../../features/users/shared/types.js"; import type { ListUsersInput } from "../../../features/users/shared/types.js"; import { AdminUsersRepository } from "../../../features/users/shared/abstractions.js"; import { NotAuthorizedError } from "../../../features/users/shared/errors.js"; export interface IListUsersErrors { notAuthorized: NotAuthorizedError; } type ListUsersError = IListUsersErrors[keyof IListUsersErrors] | AdminUsersRepository.Error; export interface IListUsers { execute(input?: ListUsersInput): Promise>; } /** List all admin users. */ export declare const ListUsersUseCase: import("@webiny/di").Abstraction; export declare namespace ListUsersUseCase { type Interface = IListUsers; type Error = ListUsersError; } export {};