import { ITelegramClient } from '../../client.types.js'; import { Message } from '../../types/index.js'; import { searchGlobal } from './search-global.js'; /** * Search for messages globally from all of your chats. * * Iterable version of {@link searchGlobal} * * **Note**: Due to Telegram limitations, you can only get up to ~10000 messages * * @param params Search parameters */ export declare function iterSearchGlobal(client: ITelegramClient, params?: Parameters[1] & { /** * Limits the number of messages to be retrieved. * * @default `Infinity`, i.e. all messages are returned */ limit?: number; /** * Chunk size, which will be passed as `limit` parameter * for `messages.search`. Usually you shouldn't care about this. * * @default 100 */ chunkSize?: number; }): AsyncIterableIterator;