imessage-ts
Version:
TypeScript library for interacting with iMessage on macOS - send messages, monitor chats, and automate responses
26 lines • 896 B
TypeScript
import { Database } from './database';
import { ConversationEntity, ConversationQueryOptions } from '../types';
/**
* Repository for accessing conversations from the iMessage database
*/
export declare class ConversationRepository {
private database;
constructor(database: Database);
/**
* Get all conversations
*/
getConversations(options?: ConversationQueryOptions): Promise<ConversationEntity[]>;
/**
* Get a conversation by ID
*/
getConversationById(id: string): Promise<ConversationEntity | null>;
/**
* Get a conversation by chat identifier (phone number, email, or group ID)
*/
getConversationByChatIdentifier(chatIdentifier: string): Promise<ConversationEntity | null>;
/**
* Get participants in a conversation
*/
private getConversationParticipants;
}
//# sourceMappingURL=conversation-repository.d.ts.map