/** * CardSession — the lifecycle of a single streaming card. * * Like a tracking shot through a model railway: each phase * transitions with mechanical precision, and every failure * has a graceful fallback waiting in the wings. * * idle → creating → streaming → completed * → aborted */ import type { LarkClient, StreamingOptions, CompleteOptions } from './types.js'; export declare class CardSession { private phase; private cardId; private messageId; private sequence; private text; private fallback; private createPromise; private readonly client; private readonly chatId; private readonly options; private readonly flush; constructor(client: LarkClient, chatId: string, options?: StreamingOptions); update(text: string): Promise; complete(options?: CompleteOptions): Promise; abort(): Promise; get isTerminal(): boolean; private transition; private ensureCardCreated; private doCreate; private sendCardMessage; private performFlush; } //# sourceMappingURL=session.d.ts.map