import { Repository } from "typeorm";
import { ChatRoom, ChatType } from "../entities/chat-room.entity";
export declare class ChatRoomRepository {
    private readonly chatRoomEntity;
    constructor(chatRoomEntity: Repository<ChatRoom>);
    save(roomData: Partial<ChatRoom>): Promise<ChatRoom>;
    findByParams(options: {
        where?: any;
        relations?: string[];
        select?: string[];
        orderBy?: any;
        take?: number;
        skip?: number;
        findOne?: boolean;
    }): Promise<ChatRoom | ChatRoom[]>;
    findOrCreateChatRoom(chatType: ChatType, tripId?: number, participantIds?: {
        teamMemberId?: number;
        customerId?: number;
    }): Promise<ChatRoom>;
    getChatRoomsByParticipant(participantType: string, participantId: number): Promise<ChatRoom[]>;
    findChatRoomBetweenParticipants(participant1Type: string, participant1Id: number, participant2Type: string, participant2Id: number, tripId?: number): Promise<ChatRoom | null>;
}
