import type { BrowserIdentity } from "@aithos/protocol-client"; import type { AithosSdkEndpoints } from "./endpoints.js"; /** * Construction options for {@link AithosSDK}. */ export interface AithosSDKConfig { /** User identity (Ed25519/X25519 keypairs + DID). */ readonly identity: BrowserIdentity; /** * Application DID. Identifies the calling app in mandates, audit logs, * billing splits. Issued at developer onboarding (will be self-service * before 0.1.0 stable). */ readonly appDid: string; /** * Optional endpoint overrides. Production defaults point at the Aithos * infrastructure; pass overrides for staging, self-hosting, tests. */ readonly endpoints?: Partial; /** * Optional fetch implementation. Defaults to the global `fetch`. Used by * tests to inject a mock without monkeypatching globals. */ readonly fetch?: typeof fetch; } /** * SDK-level error class. The `code` field is a stable string suitable for * `switch` statements; the underlying HTTP status (when applicable) is in * `status`. */ export declare class AithosSDKError extends Error { readonly code: string; readonly status: number | undefined; readonly data: Record | undefined; constructor(code: string, message: string, options?: { status?: number; data?: Record; }); } //# sourceMappingURL=types.d.ts.map