import type { OpenCodeClient } from "../../shared/session-api.js"; import { type DelegateParams, type ValidatedAgent } from "../spawner/spawn-request-builder.js"; import type { DelegationPermissionProfile } from "../spawner/spawner-types.js"; export interface AgentResolverOptions { client: Pick; projectRoot: string; } /** Resolves app agents and their least-privilege delegation permission profile. */ export declare class AgentResolver { private readonly options; constructor(options: AgentResolverOptions); /** Validate that an agent exists in the OpenCode app registry. */ resolve(agentName: string): Promise; /** Build the prompt-time permission profile for a validated agent. */ buildPermissionProfile(agent: ValidatedAgent, params: Pick): DelegationPermissionProfile; /** Disable recursive delegation tools inside delegated agents. */ buildDisabledTools(): Record; } //# sourceMappingURL=agent-resolver.d.ts.map