import { Result } from "@webiny/feature/api"; import type { AdminUser } from "../../../features/users/shared/types.js"; import type { GetUserInput } from "../../../features/users/shared/types.js"; import { AdminUsersRepository } from "../../../features/users/shared/abstractions.js"; import { NotAuthorizedError } from "../../../features/users/shared/errors.js"; export interface IGetUserErrors { notAuthorized: NotAuthorizedError; } type GetUserError = IGetUserErrors[keyof IGetUserErrors] | AdminUsersRepository.Error; export interface IGetUser { execute(input: GetUserInput): Promise>; } /** Retrieve an admin user. */ export declare const GetUserUseCase: import("@webiny/di").Abstraction; export declare namespace GetUserUseCase { type Interface = IGetUser; type Error = GetUserError; } export {};