import type { proto } from "../../WAProto"; /** set of statuses visible to other people; see updatePresence() in WhatsAppWeb.Send */ export declare type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'; export interface PresenceData { lastKnownPresence: WAPresence; lastSeen?: number; } export declare type Chat = Omit & { /** unix timestamp of date when mute ends, if applicable */ mute?: number | null; /** timestamp of when pinned */ pin?: number | null; archive?: boolean; }; export declare type ChatModification = { archive: boolean; } | { /** pin at current timestamp, or provide timestamp of pin to remove */ pin: number | null; } | { /** mute for duration, or provide timestamp of mute to remove*/ mute: number | null; } | { clear: 'all' | { messages: { id: string; fromMe?: boolean; }[]; }; } | { star: { messages: { id: string; fromMe?: boolean; }[]; star: boolean; }; } | { markRead: boolean; } | { delete: true; };