import type Relay from "@relaymessenger/sdk"; import { type RelayWebhookEvent } from "@relaymessenger/sdk"; export interface ListenIO { stdout(value: string): void; stderr(value: string): void; } export interface ListenOptions { /** A loopback address to POST each event to. Required for `listen`; * optional for the older `events listen`, which prints when it is absent. */ forwardTo?: string; /** The `whsec_` secret each forward is signed with, exactly the way a * deployed Relay webhook is signed. Required whenever `forwardTo` is set. */ secret?: string; /** How to show each event on stdout: the raw JSON envelope (`events * listen`) or the one-line form `watch` prints (`listen`). */ render?: (event: RelayWebhookEvent) => string; signal?: AbortSignal; fetch?: typeof fetch; } export declare const listenForAgentEvents: (client: Relay, options: ListenOptions, io: ListenIO) => Promise; //# sourceMappingURL=event-listen.d.ts.map