import { MaybeArray } from '../../../types/utils.js';
import { ITelegramClient } from '../../client.types.js';
import { Message } from '../../types/index.js';
/**
 * Get messages from PM or legacy group by their IDs.
 * For channels, use {@link getMessages}.
 *
 * Unlike {@link getMessages}, this method does not
 * check if the message belongs to some chat.
 *
 * For messages that were not found, `null` will be
 * returned at that position.
 *
 * @param messageIds  Messages IDs
 * @param [fromReply]
 *     Whether the reply to a given message should be fetched
 *     (i.e. `getMessages(msg.chat.id, msg.id, true).id === msg.replyToMessageId`)
 */
export declare function getMessagesUnsafe(client: ITelegramClient, messageIds: MaybeArray<number>, fromReply?: boolean): Promise<(Message | null)[]>;
