export declare const DEFAULT_API_HOST = "preview-api.masons.ai"; export declare const DEFAULT_CONNECTOR_URL = "wss://preview-connectorapi.masons.ai/gateway"; export interface PlatformClientConfig { apiHost: string; fetch?: typeof fetch; } export declare class PlatformApiError extends Error { readonly status: number; readonly code: string; constructor(status: number, code: string, message: string); } export declare class PlatformNetworkError extends Error { readonly code: "timeout" | "network"; readonly detail: string; constructor(code: "timeout" | "network", detail: string); } export interface RequestConnectionResponse { requestIds: string[]; status: string; } export interface ConnectionNodeRef { kind: string; mstpAddress: string; handle?: string; displayName?: string; avatarUrl?: string; } export interface ListRequestsItem { id: string; direction: "incoming" | "outgoing"; fromNode?: ConnectionNodeRef | null; toNode?: ConnectionNodeRef | null; variant: string; status: string; matchmaking: { title: string | null; benefit: string | null; scenario: string | null; }; createdAt: string; } export interface ListRequestsResponse { total: number; items: ListRequestsItem[]; } export interface AcceptRequestResponse { status: "accepted"; counterparty: ConnectionNodeRef | null; } export interface DeclineRequestResponse { status: "declined"; } export interface UpdateProfileParams { name?: string; scope?: string; about?: string; audience?: string; } export interface UpdateProfileResponse { status: "updated"; profile?: { name: string; scope: string; about: string; audience: string; }; } export interface ListConnectionsResponse { total: number; connections: Array<{ counterparty: ConnectionNodeRef; access: "mutual" | "outbound" | "inbound" | string; createdAt: string | null; }>; } export declare const REQUEST_TIMEOUT_MS = 15000; export declare function apiFetch(cfg: PlatformClientConfig, url: string, init?: RequestInit, timeoutMs?: number): Promise; export declare function requestConnection(cfg: PlatformClientConfig, runtimeKey: string, params: { targetHandle: string; variants: ("distribute" | "receive")[]; }): Promise; export declare function listRequests(cfg: PlatformClientConfig, runtimeKey: string, params?: { status?: string; direction?: string; page?: number; limit?: number; }): Promise; export declare function acceptRequest(cfg: PlatformClientConfig, runtimeKey: string, requestId: string): Promise; export declare function declineRequest(cfg: PlatformClientConfig, runtimeKey: string, requestId: string): Promise; export declare function updateProfile(cfg: PlatformClientConfig, runtimeKey: string, params: UpdateProfileParams): Promise; export declare function listConnections(cfg: PlatformClientConfig, runtimeKey: string): Promise; //# sourceMappingURL=platform-client.d.ts.map