import { type RtaConfig } from './config.js'; export declare const name = "realtimeavatar"; export declare const inject: string[]; type Disposer = () => void; /** A pending tool execution as seen by the pre-execute gate (dsh-tools ToolExecution). */ interface PreExecuteEvent { name: string; arguments?: unknown; } type PreExecuteVerdict = { kind: 'allow' | 'deny' | 'ask'; reason?: string; }; type PreExecuteListener = (event: PreExecuteEvent, next: () => Promise) => Promise; /** The subset of the Cordis context this plugin uses. Optional members degrade gracefully. */ export interface PluginContext { tools: { register(definition: unknown): Disposer; }; on(event: 'tools/pre-execute', listener: PreExecuteListener): void; /** Optional service lookup (cordis `ctx.get`). */ get?(name: string): unknown; /** Optional dependency-scoped sub-fiber (cordis `ctx.inject`). */ inject?(deps: string[], callback: (scope: ScopedContext) => void): unknown; } /** What the sub-fibers see once their services exist. */ export interface ScopedContext { systemPrompt?: { section(section: { name: string; order: number; text: string; }): Disposer; }; skills?: { registerProvider(create: () => unknown): Disposer; }; commands?: { register(definition: unknown): Disposer; }; } /** Plugin entry. */ export declare function apply(ctx: PluginContext, config: RtaConfig | undefined | null): void; export * from './config.js'; export * from './credentials.js'; export * from './redact.js'; export * from './client.js'; export * from './api.js'; export * from './docs.js'; export * from './facts.js'; export * from './gate.js'; export * from './prompt.js'; export * from './skills.js'; export * from './commands.js'; export { buildRtaTools, collectStatus, renderStatus } from './tools/index.js'; export type { RtaToolDefinition, ToolDeps, ContentBlock, StatusReport } from './tools/index.js';