import { Result } from "@webiny/feature/api"; import type { Team, ListTeamsInput } from "../shared/types.js"; import { TeamsRepository } from "../shared/abstractions.js"; import { NotAuthorizedError } from "../shared/errors.js"; export interface IListTeamsErrors { notAuthorized: NotAuthorizedError; } type ListTeamsError = IListTeamsErrors[keyof IListTeamsErrors] | TeamsRepository.Error; export interface IListTeams { execute(params?: ListTeamsInput): Promise>; } /** List all teams. */ export declare const ListTeamsUseCase: import("@webiny/di").Abstraction; export declare namespace ListTeamsUseCase { type Interface = IListTeams; type Error = ListTeamsError; } export {};