export declare function formatError(error: unknown): { message: string; responseData?: unknown; }; export declare function extractApiCode(responseData: unknown): number | undefined; export declare function stringifyErrorPayload(payload: unknown): string; export declare function isUniversalCardBuildFailure(responseData: unknown): boolean; export declare function isCompletionNotFoundError(responseData: unknown): boolean; export declare function isRetryableError(error: unknown): boolean; export interface RetryOptions { maxAttempts: number; baseDelayMs: number; maxDelayMs: number; } export declare const DEFAULT_RETRY_OPTIONS: RetryOptions; export declare function withRetry(fn: () => Promise, options?: RetryOptions): Promise; export type ConnectionState = 'disconnected' | 'connecting' | 'connected'; export declare function buildFallbackInteractiveCard(sourceCard: object): object; export interface FeishuEventData { event_id?: string; token?: string; create_time?: string; event_type?: string; tenant_key?: string; ts?: string; uuid?: string; type?: string; app_id?: string; sender: { sender_id?: { union_id?: string; user_id?: string; open_id?: string; }; sender_type: string; tenant_key?: string; }; message: { message_id: string; root_id?: string; parent_id?: string; create_time: string; update_time?: string; chat_id: string; thread_id?: string; chat_type: string; message_type: string; content: string; mentions?: Array<{ key: string; id: { union_id?: string; user_id?: string; open_id?: string; }; name: string; tenant_key?: string; }>; user_agent?: string; }; } export interface FeishuMessageEvent { messageId: string; chatId: string; threadId?: string; chatType: 'p2p' | 'group'; senderId: string; senderType: 'user' | 'bot'; content: string; msgType: string; attachments?: FeishuAttachment[]; mentions?: Array<{ key: string; id: { open_id: string; }; name: string; }>; rawEvent: FeishuEventData; } export interface FeishuAttachment { type: 'image' | 'file'; fileKey: string; fileName?: string; fileType?: string; fileSize?: number; } export declare function getString(value: unknown): string | undefined; export declare function getNumber(value: unknown): number | undefined; export declare function collectAttachmentsFromContent(content: unknown): FeishuAttachment[]; export declare function extractTextFromPost(content: unknown): string; export interface FeishuCardActionEvent { openId: string; action: { tag: string; value: Record; }; token: string; messageId?: string; chatId?: string; threadId?: string; rawEvent: unknown; } export type FeishuCardActionResponse = object; //# sourceMappingURL=client-utils.d.ts.map