ClarioDesk singleton. subscribe* methods return an
unsubscribe function; the React hooks mirror each subscription.
Lifecycle
Tickets & messages
pending: true is optimistic; failed: true means rejected β
render tap-to-retry with retryMessage. Offline sends stay pending and
auto-flush on reconnect.
Live subscriptions
Each returns an unsubscribe function.Hooks
The same data, idiomatic for React (separate entry, no React dep in core):CSAT
Push
Attachments
Types
All types are exported:Ticket, Message, Attachment, OutgoingAttachment,
readStateOf, ClarioDeskError, and the enums above.
This surface mirrors the Flutter SDK 1:1. Same method
names, same semantics. If a method behaves differently across the two, itβs a bug.