import type { MessageContent } from './protocol/index.js'; export interface OutboxItem { clientMsgId: string; content: MessageContent; ts: number; } /** Persists not-yet-acknowledged outgoing messages to localStorage, keyed by * guest token, so a page reload during a connectivity drop doesn't silently * lose what the user typed (the "WhatsApp" guarantee: your message is queued * until it's confirmed sent, even across app restarts). */ export declare class PersistentOutbox { private readonly key; constructor(token: string); /** All pending items, oldest first, with stale (>7d) entries dropped. */ load(): OutboxItem[]; add(item: OutboxItem): void; /** Remove an item once it's been acknowledged by the server. */ remove(clientMsgId: string): void; private save; }