export * from './cards.js'; export type StreamToolState = { name: string; status: 'pending' | 'running' | 'completed' | 'failed'; output?: string; }; export type StreamCardSegment = { type: 'reasoning'; text: string; } | { type: 'text'; text: string; } | { type: 'tool'; name: string; status: 'pending' | 'running' | 'completed' | 'failed'; output?: string; kind?: 'tool' | 'subtask'; } | { type: 'note'; text: string; variant?: 'retry' | 'compaction' | 'question' | 'error' | 'permission'; }; export interface StreamCardPendingPermission { sessionId: string; permissionId: string; tool: string; description: string; risk?: string; pendingCount?: number; parentSessionId?: string; relatedSessionId?: string; } export interface StreamCardQuestionOption { label: string; description?: string; } export interface StreamCardPendingQuestion { requestId: string; sessionId: string; chatId: string; questionIndex: number; totalQuestions: number; header: string; question: string; options: StreamCardQuestionOption[]; multiple?: boolean; } export interface StreamCardData { thinking: string; showThinking?: boolean; text: string; chatId?: string; messageId?: string; thinkingMessageId?: string; tools: StreamToolState[]; segments?: StreamCardSegment[]; pendingPermission?: StreamCardPendingPermission; pendingQuestion?: StreamCardPendingQuestion; status: 'processing' | 'completed' | 'failed'; } export interface StreamCardBuildOptions { componentBudget?: number; } export declare function buildStreamCards(data: StreamCardData, options?: StreamCardBuildOptions): object[]; export declare function buildStreamCard(data: StreamCardData): object; //# sourceMappingURL=cards-stream.d.ts.map