/** * mintNamedWriteToken — client-side helper to mint a named-write JWT. * * POSTs to the client's own mint endpoint (NOT the OxPulse backend directly). * Returns the raw JWT string (no 'Bearer ' prefix) that can be passed to * SDKChatClient as `jwt`. * * Throws NamedWriteMintError on any non-2xx response or malformed body. */ export interface MintNamedWriteOptions { /** The client's OWN mint endpoint. */ mintEndpoint: string; /** The event room key (event.slug). */ roomId: string; /** ox_did (v4 UUID) — optional. */ oxDid?: string; /** Injectable fetch for tests. */ fetchImpl?: typeof fetch; } export type NamedWriteMintErrorCode = 'unauthorized' | 'forbidden' | 'rate_limited' | 'mint_failed'; export declare class NamedWriteMintError extends Error { readonly code: NamedWriteMintErrorCode; readonly status: number; constructor(code: NamedWriteMintErrorCode, message: string, status: number); } /** POST to the client's mint endpoint, return the named-write SDK JWT (raw string, no 'Bearer '). */ export declare function mintNamedWriteToken(opts: MintNamedWriteOptions): Promise; //# sourceMappingURL=named-write.d.ts.map