/**
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
* Copyright (C) 2023-2026 Roj
*
* This file is part of MTKruto.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
import { Api } from "../2_tl.js";
import type { ChatP, PeerGetter } from "./1_chat_p.js";
import { type User } from "./2_user.js";
import { type InviteLink } from "./3_invite_link.js";
/** A join request. */
export interface JoinRequest {
/** The chat that the user requested to join. */
chat: ChatP;
/** The user who made the join request. */
from: User;
/** The point in time when the join request was made. */
date: number;
/** The bio of the user who made the join request. Bot-only. */
bio?: string;
/** The invite link that the user used to make the join request. Bot-only. */
inviteLink?: InviteLink;
}
export declare function constructJoinRequest(update: Api.updateBotChatInviteRequester, getPeer: PeerGetter): JoinRequest;
export declare function constructJoinRequest2(peer: Api.Peer, inviteImporter: Api.ChatInviteImporter, getPeer: PeerGetter): JoinRequest;
//# sourceMappingURL=4_join_request.d.ts.map