import { tl } from '../../tl/index.js'; import { PeersIndex } from '../types/peers/peers-index.js'; import { PendingUpdate } from './types.js'; export declare function messageToUpdate(message: tl.TypeMessage): tl.TypeUpdate; export declare function extractChannelIdFromUpdate(upd: tl.TypeUpdate): number | undefined; export declare function toPendingUpdate(upd: tl.TypeUpdate, peers: PeersIndex, fromDifference?: boolean): PendingUpdate; export declare function isMessageEmpty(upd: tl.TypeUpdate): boolean; /** * Create a dummy `updates` container with given updates. */ export declare function createDummyUpdatesContainer(updates: tl.TypeUpdate[], seq?: number): tl.TypeUpdates; /** * Create a dummy update from PTS and PTS count. * * @param pts PTS * @param ptsCount PTS count * @param channelId Channel ID (bare), if applicable */ export declare function createDummyUpdate(pts: number, ptsCount: number, channelId?: number): tl.TypeUpdates; /** @internal */ export declare function assertIsUpdatesGroup(ctx: string, upd: tl.TypeUpdates): asserts upd is tl.RawUpdates | tl.RawUpdatesCombined;