import { Result } from "@webiny/feature/api"; import type { ApiKey } from "../shared/types.js"; import { ApiKeysRepository } from "../shared/abstractions.js"; import type { ApiKeyNotAuthorizedError } from "../../../../features/security/apiKeys/shared/errors.js"; export interface IGetApiKeyErrors { notAuthorized: ApiKeyNotAuthorizedError; } type GetApiKeyError = IGetApiKeyErrors[keyof IGetApiKeyErrors] | ApiKeysRepository.Error; export interface IGetApiKey { execute(id: string): Promise>; } /** Retrieve an API key by ID. */ export declare const GetApiKeyUseCase: import("@webiny/di").Abstraction; export declare namespace GetApiKeyUseCase { type Interface = IGetApiKey; type Error = GetApiKeyError; } export {};