import { ParsedUpdate } from '../types/updates/index.js';
import { RawUpdateInfo } from './types.js';
export interface ParsedUpdateHandlerParams {
    /**
     * When non-zero, allows the library to automatically handle Telegram
     * media groups (e.g. albums) in {@link MessageGroup} updates
     * in a given time interval (in ms).
     *
     * > **Note**: this does not catch messages that happen to be consecutive,
     * > only messages belonging to the same "media group".
     *
     * This will cause up to `messageGroupingInterval` delay
     * in handling media group messages.
     *
     * This option only applies to `new_message` updates,
     * and the updates being grouped **will not** be dispatched on their own.
     *
     * Recommended value is 250 ms.
     *
     * @default  0 (disabled)
     */
    messageGroupingInterval?: number;
    /** Handler for parsed updates */
    onUpdate: (update: ParsedUpdate) => void;
}
export declare function makeParsedUpdateHandler(params: ParsedUpdateHandlerParams): (update: RawUpdateInfo) => void;
