export interface MessageListRes {
    to_user(to_user: number, arg1: string): unknown;
    MessageList: MessageList[];
    // totalPages: number;
    // currentPage: string;
  }

export interface MessageList {
    from_user: any;
    to_user: any;
    created_at: string | number | Date;
    response_code: string;
    message:       string;
    chat:          Chat[];
    socket_result: SocketResult;
    status:        string;
}

export interface Chat {
    id:                    number;
    from_user:             number;
    to_user:               string;
    message:               string;
    url:                   string;
    video_thumbnail:       string;
    type?:                  
     |"text"
     |"story_reply"
     |"image"
     |"file"
     |"post"
     |"story";
    post_id:               string;
    reel_id:               string;
    story_id:              string;
    send_post:             string;
    send_story:            string;
    created_at:            Date;
    first_name:            string;
    profile_pic:           string;
    post_user_id:          string;
    post_user_name:        string;
    post_user_profile_pic: string;
    post_type:string;
    chat_time:             string;
}

export interface SocketResult {
    error: string;
}