/** * Construct the optional `runtime.channel` surface for channel-originated runs. */ import type { ChannelAddress, ChannelCapabilities, ChannelEvent, ChannelMessage, ChannelMessageUpdate, PostedChannelMessage, RuntimeChannel } from "./types.js"; export interface ChannelTransport { post(input: { text: string; conversationId: string; threadId?: string; native?: ChannelMessage["native"]; }): Promise; update?(input: { id: string; text?: string; native?: ChannelMessageUpdate["native"]; }): Promise; } export interface CreateRuntimeChannelOptions { name: string; provider: string; event: ChannelEvent; address: ChannelAddress; capabilities?: Partial; transport: ChannelTransport; /** * When `post(..., { final: true })` is called, auto-reply should be suppressed. * The managed runner reads this flag after the agent completes. */ onFinalPosted?: () => void; } /** * Build a `RuntimeChannel` bound to a managed transport. * * Credentials never appear on the returned object. * Phase 1 only permits `current_thread` destinations. */ export declare function createRuntimeChannel(options: CreateRuntimeChannelOptions): RuntimeChannel; //# sourceMappingURL=runtime.d.ts.map