import { ChunkType } from '@mastra/core/stream';
import { MastraUIMessage, MastraUIMessageMetadata } from '../types';
import { WorkflowStreamResult } from '@mastra/core/workflows';
type StreamChunk = {
    type: string;
    payload: any;
    runId: string;
    from: 'AGENT' | 'WORKFLOW';
};
export declare const mapWorkflowStreamChunkToWatchResult: (prev: WorkflowStreamResult<any, any, any, any>, chunk: StreamChunk) => WorkflowStreamResult<any, any, any, any>;
export interface ToUIMessageArgs {
    chunk: ChunkType;
    conversation: MastraUIMessage[];
    metadata: MastraUIMessageMetadata;
}
export declare const toUIMessage: ({ chunk, conversation, metadata }: ToUIMessageArgs) => MastraUIMessage[];
export {};
