export declare type UnknownIndices = { [index: string]: unknown; }; export declare type BaseMessage = UnknownIndices & { id: number; type: MessageType; date: string; text: ExportedText; }; export declare type MessageType = 'message' | 'service'; export declare type ExportedMessage = BaseMessage & { type: 'message'; from: string; from_id: number; forwarded_from?: string; forwarded_from_id?: number; saved_from?: string; saved_from_id?: number; via_bot?: string; reply_to_message_id?: number; }; export declare type MediaMessage = ExportedMessage & { file?: string; media_type?: MediaType; mime_type?: string; duration_seconds?: string; width?: number; height?: number; sticker_emoji?: string; thumbnail?: string; }; export declare type PhotoMessage = ExportedMessage & { photo: string; width: number; height: number; }; export declare type MediaType = 'animation' | 'sticker' | 'video_file' | 'voice_message'; export declare type PollMessage = ExportedMessage & { poll: Poll; }; export declare type Poll = { question: string; close: boolean; total_voters: number; answers: PollAnswer[]; }; export declare type PollAnswer = { text: string; voters: number; chosen: boolean; }; export declare type ExportedService = BaseMessage & { type: 'service'; actor: string; actor_id: number; action: Action; message_id?: number; }; export declare type Action = 'empty' | 'chat_create' | 'chat_edit_title' | 'chat_edit_photo' | 'chat_delete_photo' | 'chat_add_user' | 'chat_delete_user' | 'chat_joined_by_link' | 'chat_migrate_to' | 'channel_create' | 'channel_migrate_from' | 'pin_message' | 'history_clear' | 'game_score' | 'payment_sent_me' | 'payment_sent' | 'phone_call' | 'screenshot_taken' | 'custom_action' | 'bot_allowed' | 'secure_values_sent_me' | 'secure_values_sent' | 'contact_sign_up'; export declare type AnyMessage = ExportedMessage | MediaMessage | PollMessage | PhotoMessage | ExportedService; export declare type ChatExport = UnknownIndices & { id: number; name: string; type: string; messages: AnyMessage[]; }; export declare type ImportMessageOptions = { includeStickersAsEmoji?: boolean; }; export declare type ChatOptions = ImportMessageOptions & { ignoreService?: boolean; mergeMissingUserIdIntoName?: boolean; }; export declare type ExportedText = string | [string | TextObject]; export declare type TextObject = { type: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'link' | 'text_link' | 'mention'; text: string; }; export declare type PhoneCall = { duration_seconds: number; discard_reason: 'hangup' | 'disconnect' | 'busy' | 'missed'; }; //# sourceMappingURL=types.d.ts.map