import { Result } from "@webiny/feature/api"; import type { Role, ListRolesInput } from "../shared/types.js"; import { RolesRepository } from "../shared/abstractions.js"; import { NotAuthorizedError } from "../shared/errors.js"; export interface IListRolesErrors { notAuthorized: NotAuthorizedError; } type ListRolesError = IListRolesErrors[keyof IListRolesErrors] | RolesRepository.Error; export interface IListRoles { execute(params?: ListRolesInput): Promise>; } /** List all security roles. */ export declare const ListRolesUseCase: import("@webiny/di").Abstraction; export declare namespace ListRolesUseCase { type Interface = IListRoles; type Error = ListRolesError; } export {};