import { tl } from '../../../tl/index.js';
import { ITelegramClient } from '../../client.types.js';
import { ArrayPaginatedWithMeta } from '../../types/utils.js';
import { Message } from '../../types/index.js';
export interface SearchPostsGlobalOffset {
    rate: number;
    peer: tl.TypeInputPeer;
    id: number;
}
/**
 * Search for posts globally across all public channels in Telegram
 *
 * @param query  Keyword to search for
 * @param params  Additional parameters
 */
export declare function searchPostsGlobal(client: ITelegramClient, query: string, params?: {
    /** Offset for the search */
    offset?: SearchPostsGlobalOffset;
    /** Limit the number of results */
    limit?: number;
    /**
     * The amount of stars you are willing to pay for the search
     */
    payStars?: tl.Long;
}): Promise<ArrayPaginatedWithMeta<Message, SearchPostsGlobalOffset, {
    limits?: tl.TypeSearchPostsFlood;
}>>;
