import type { RunRenderer } from "@copilotkit/channels-core"; /** * Minimal structural type for a Discord text-channel (or thread) so unit * tests can inject a fake without opening a Gateway connection. */ export interface ChannelLike { sendTyping(): Promise; send(payload: string | { content: string; }): Promise<{ id: string; edit(p: string | { content: string; }): Promise; }>; } /** * Construct a {@link RunRenderer} for a single agent run in Discord. * * The `subscriber` is passed to `runAgent`. After the run resolves, the * run-loop reads `getCapturedToolCalls()` (filtering by which tools are * registered) and `getPendingInterrupt()`. `markInterrupted()` is called * when a new turn arrives for the same conversation while this run is * still streaming — it appends a `_(interrupted)_` marker to any partial * reply so the user sees a clear visual cue that the bot stopped. */ export declare function createRunRenderer(args: { channel: ChannelLike; /** * Custom-event names that should be treated as interrupts — captured * for later dispatch to an `InterruptHandler`. Defaults to just * `on_interrupt` (the name LangGraph's AG-UI adapter emits). */ interruptEventNames?: ReadonlySet; }): RunRenderer; //# sourceMappingURL=event-renderer.d.ts.map