/** * Records the doctor's consent decision — `POST /partner/consent` with the * session bearer token (sibling server spec §3.2). * * No automatic retry, no queue (pattern of the other services): `accept` is * retried by the user via the "Continuar" button; `decline` is best-effort. */ export declare class ConsentService { private apiUrl; constructor(apiUrl: string); /** * Registers acceptance. Awaits the server's 201 — the chat is released only * after this resolves (spec §2.4). * * @throws Error on network failure or any non-ok response — the consent * screen shows the error banner and keeps the modal for retry. */ accept(token: string, comms: boolean): Promise; /** * Registers refusal, fire-and-forget: a logging failure must never keep the * user from closing the widget (spec §2.4). */ decline(token: string): void; private post; }