/** * mintAnonReadToken — client-side helper to mint an anon-read JWT. * * Calls POST /api/sdk/auth/anon-read-mint on the OxPulse backend. * Returns a short-lived (300 s) read-only token that can be passed * to SDKChatClient as `jwt` with `cryptoMode: 'plaintext'`. * * Throws AnonReadMintError on any non-2xx response. */ export interface AnonReadMintResult { /** Raw JWT — pass directly to SDKChatClient opts.jwt (no "Bearer " prefix). */ token: string; /** Opaque anon user ID minted server-side (UUID). */ userId: string; /** Unix timestamp (seconds) at which the token expires. */ expiresAt: number; } export type AnonReadMintErrorCode = 'not_anon_readable' | 'disabled' | 'rate_limited' | 'mint_failed'; export declare class AnonReadMintError extends Error { readonly code: AnonReadMintErrorCode; readonly status: number; constructor(code: AnonReadMintErrorCode, message: string, status: number); } export declare function mintAnonReadToken(opts: { baseUrl: string; appId: string; roomId: string; /** Injectable fetch implementation — defaults to globalThis.fetch. For tests. */ fetchImpl?: typeof fetch; }): Promise; //# sourceMappingURL=anon-read.d.ts.map