export declare const WISP_TELEGRAM_HANDOFF_PREPARE_PATH: "telegram/dapp/prepare"; export declare const WISP_TELEGRAM_HANDOFF_EVENTS_PATH: "telegram/dapp/events"; export declare const WISP_TELEGRAM_HANDOFF_EVENT_RETRY_MS: 1500; export declare const WISP_TELEGRAM_HANDOFF_KINDS: readonly ["connect", "restore", "sign", "disconnect"]; export declare const WISP_TELEGRAM_HANDOFF_STATUSES: readonly ["pending", "opened", "approved", "rejected", "failed"]; export declare const WISP_TELEGRAM_HANDOFF_TERMINAL_STATUSES: readonly ["approved", "rejected", "failed"]; export type WispTelegramHandoffKind = (typeof WISP_TELEGRAM_HANDOFF_KINDS)[number]; export type WispTelegramHandoffStatusValue = (typeof WISP_TELEGRAM_HANDOFF_STATUSES)[number]; export type WispTelegramHandoffPrepareRequest = { kind: WispTelegramHandoffKind; request: string; sessionId?: string; chainId: string; origin: string; url: string; telegramReturnUrl?: string; name: string; description?: string; icon?: string; expectedAccount?: string; expectedPermission?: string; }; export type WispTelegramHandoffResult = { actor?: string; permission?: string; sessionId?: string; chainId?: string; transactionId?: string; sessionExpiresAt?: number; sessionInvalidated?: boolean; error?: string; }; export type WispTelegramHandoffStatus = { id: string; eventId: number; status: WispTelegramHandoffStatusValue; expiresAt: number; result?: WispTelegramHandoffResult; }; export type WispTelegramPreparedHandoff = WispTelegramHandoffStatus & { startParam?: string; launchUrl?: string; }; export declare function isWispTelegramHandoffStatus(value: unknown): value is WispTelegramHandoffStatus; export declare function parseWispTelegramHandoffStatus(value: unknown, expectedId?: string): WispTelegramHandoffStatus; export declare function parseWispTelegramPreparedHandoff(value: unknown): WispTelegramPreparedHandoff; //# sourceMappingURL=telegram-protocol.d.ts.map