import { type Result } from "@webiny/feature/api"; import type { Tenant } from "../../../types/tenancy.js"; export type GetTenantByIdError = { type: "NOT_FOUND"; } | { type: "UNKNOWN"; cause: Error; }; export interface IGetTenantByIdUseCase { execute(id: string): Promise>; } /** Retrieve a tenant by its ID. */ export declare const GetTenantByIdUseCase: import("@webiny/di").Abstraction; export declare namespace GetTenantByIdUseCase { type Interface = IGetTenantByIdUseCase; type Error = GetTenantByIdError; type Result = ReturnType; } export interface IGetTenantByIdRepository { getById(id: string): Promise; } /** Fetch a tenant by ID from storage. */ export declare const GetTenantByIdRepository: import("@webiny/di").Abstraction; export declare namespace GetTenantByIdRepository { type Interface = IGetTenantByIdRepository; } export interface IGetTenantByIdGateway { getTenantById(id: string): Promise; } /** Storage gateway for tenant retrieval by ID. */ export declare const GetTenantByIdGateway: import("@webiny/di").Abstraction; export declare namespace GetTenantByIdGateway { type Interface = IGetTenantByIdGateway; }