/** * The approval answerer. * * `ctx.approval` is a waterfall with many possible answerers, so this listener * claims only requests for the agent this frontend owns and delegates the rest * with `next()` — returning without calling it would silently deny every other * agent's approvals, including a subagent's. * * The abort check is synchronous and deliberate: dispatch rides a microtask, so * an abort landing in that window would leave a prompt on screen for a request * that has already settled `'cancelled'`, and nothing would ever dismiss it. * @module dshline/approval */ import type { Context } from '@deepseek-ai/cordis'; import type { Agent } from '@deepseek-ai/dsh-agent'; /** * Answer approval requests for `owned` by prompting in the live region. * @param ctx - the plugin context owning the listener effect. * @param owned - the agent whose requests this frontend answers. * @param bell - emits terminal BEL after this frontend presents an approval. * @returns the disposer removing the listener. */ export declare function installApprovalAnswerer(ctx: Context, owned: () => Agent | undefined, bell: () => void): () => void; //# sourceMappingURL=approval.d.ts.map