import type { ValidatedAgent } from "./spawn-request-builder.js"; /** * Convert OpenCode SDK tool metadata into a boolean tool map. * * @param value - Raw SDK agent `tools` value. * @returns Tool allow map when the SDK returned boolean entries. */ export declare function parseToolBooleans(value: unknown): Record | undefined; /** * Extract a permission map from raw SDK agent metadata. * * @param value - Raw SDK agent `permission` value. * @returns Permission record when present. */ export declare function parsePermissionRecord(value: unknown): Record | undefined; /** * Enrich live SDK agent metadata with local `.opencode/agents` primitive policy. * * @param agent - Agent metadata returned by the SDK. * @param projectRoot - Resolved OpenCode project root for local primitive lookup. * @returns Agent metadata with local description, permission, and legacy tools filled when available. */ export declare function enrichAgentFromPrimitives(agent: ValidatedAgent, projectRoot: string): Promise; //# sourceMappingURL=agent-primitive-policy.d.ts.map