import { M as ManagementOk, T as Tenant, C as CreateTenantInput, P as PluginInfo, a as ConnectionStatus, f as PermissionLookupInput, b as PermissionRecord, d as CreateConnectLinkInput, c as ConnectLink, R as ResolvedConnectLink, e as OAuthCallbackInput, O as OAuthCallbackResult } from './types-Bsv_KdHs.js'; type CorsairClientOptions = { /** Origin + base path of the mounted handler, e.g. 'https://api.example.com/api/corsair'. */ baseURL: string; /** Optional fetch override. Defaults to globalThis.fetch. */ fetch?: typeof fetch; }; type CorsairManagementClient = { ok: () => Promise; tenants: { list: () => Promise; create: (input: CreateTenantInput) => Promise; get: (id: string) => Promise; }; plugins: { list: () => Promise; get: (id: string) => Promise; }; connectionStatus: { get: (query?: { tenantId?: string; }) => Promise; }; permissions: { get: (input: PermissionLookupInput) => Promise; }; connect: { createLink: (input: CreateConnectLinkInput) => Promise; resolve: (state: string) => Promise; oauthCallback: (input: OAuthCallbackInput) => Promise; }; }; declare class CorsairClientError extends Error { readonly status: number; readonly code: string; readonly extra: Record; constructor(status: number, code: string, message: string, extra?: Record); } export { type CorsairClientOptions as C, type CorsairManagementClient as a, CorsairClientError as b };