import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike, ChatInviteLink } from '../../types/index.js'; /** * Create an additional invite link for the chat. * * You must be an administrator and have appropriate rights. * * @param chatId Chat ID * @param params */ export declare function createInviteLink(client: ITelegramClient, chatId: InputPeerLike, params?: { /** * Date when this link will expire. * If `number` is passed, UNIX time in ms is expected. */ expires?: number | Date; /** * Maximum number of users that can be members of this chat * at the same time after joining using this link. * * Integer in range `[1, 99999]` or `Infinity` * * @default `Infinity` */ usageLimit?: number; /** * Whether users to be joined via this link need to be * approved by an admin */ withApproval?: boolean; /** * When a pricing plan is passed, this link will become a paid subscription link * * Currently the only allowed `.period` is 1 month, i.e. `2592000` */ subscriptionPricing?: tl.TypeStarsSubscriptionPricing; }): Promise;