import type { InteractionBlock } from "../types/interactions.js"; /** Serialize a block to its wire marker. `secret` blocks return "". */ export declare function serializeInteractionBlock(block: InteractionBlock): string; /** Append a block's marker to `text` (with a separating blank line when needed). */ export declare function appendInteractionBlock(text: string, block: InteractionBlock): string; /** Telegram's hard limit on `callback_data`. */ export declare const MAX_CALLBACK_BYTES = 64; export interface EncodeReplyCallbackOptions { /** Maximum encoded callback payload length for the target platform. */ maxBytes?: number; } /** * Encode an answer to be carried as connector callback data. Returns null when * the payload would exceed the platform limit — the caller should then link out * or accept a free-text reply instead of rendering a tappable control. */ export declare function encodeReplyCallback(value: string, options?: EncodeReplyCallbackOptions): string | null; export interface DecodedCallback { kind: "reply"; /** The user-message text to re-inject. */ value: string; } /** True when a platform callback payload was produced by `encodeReplyCallback`. */ export declare function isInteractionCallback(data: unknown): data is string; /** Decode a callback payload back to the answer, or null when it isn't ours. */ export declare function decodeCallback(data: unknown): DecodedCallback | null;