import { serializeAgentToolResultForSse } from '../service-inbound-utils.js';
import type { EmbeddedStreamEvent } from './types.js';
export type GatewaySseEvent = {
    type: string;
    [key: string]: unknown;
};
/** Map embedded pi events to gateway / webchat SSE shape. */
export declare function mapEmbeddedEventToGatewaySse(event: EmbeddedStreamEvent): GatewaySseEvent | null;
export declare function mapEmbeddedToolEndResult(result: unknown): ReturnType<typeof serializeAgentToolResultForSse>;
