/**
 * Platform AI provider — routes AI calls through the Flow Weaver platform.
 * Uses the platform's AI credits, no local API key needed.
 * Connects to POST /ai-chat/stream and parses SSE events.
 */
import type { AgentProvider, AgentMessage, ToolDefinition, StreamEvent, StreamOptions } from '../types.js';
export interface PlatformProviderOptions {
    /** JWT token or API key for platform auth */
    token: string;
    /** Platform base URL */
    platformUrl: string;
    /** Model override (optional — platform selects default) */
    model?: string;
}
export declare class PlatformProvider implements AgentProvider {
    private token;
    private baseUrl;
    private model;
    constructor(options: PlatformProviderOptions);
    stream(messages: AgentMessage[], _tools: ToolDefinition[], options?: StreamOptions): AsyncGenerator<StreamEvent>;
}
export declare function createPlatformProvider(options: PlatformProviderOptions): PlatformProvider;
//# sourceMappingURL=platform.d.ts.map