import { applyLightweightPart } from '../../../types/schemas/integrations/lightweight.js'; import type { LightweightTurn } from '../../../types/schemas/integrations/lightweight.js'; import { createMessagePartsAccumulator as createClaudeMessagePartsAccumulator } from '../../../messages/composables/use-direct-stream.js'; import type { DirectStreamOptions, MessagePartsEvent } from '../../../messages/composables/use-direct-stream.js'; type MessagePartsAccumulator = { runId: string | null; lightweight?: LightweightTurn; claude?: ReturnType; }; export declare function createMessagePartsAccumulator(runId?: string | null): MessagePartsAccumulator; export declare function applyMessagePartsEvent(accumulator: MessagePartsAccumulator, input: MessagePartsEvent): { text: string; thinking: string; changed: boolean; } | { text: any; thinking: any; changed: any; reasoning: any; files: any; }; export declare function useDirectStream(options?: DirectStreamOptions): { activity: any; streamingText: any; streamingThinking: any; activeRunId: any; streamingReasoning: any; streamingFiles: any; connectMessage: (url: string, init: RequestInit, onAccepted: (response: applyLightweightPart) => void) => Promise; connectConversation: (url: string, init: RequestInit, expectedAssistantMessageId?: string) => Promise; beginMessage: () => void; disconnect: (reset?: boolean) => void; }; export {};