import type { ToolPermissionPolicy } from "@agentswork/acode"; export type FeatureState = "disabled" | "collapsed" | "expanded"; export declare function normalizeFeatureState(raw: unknown): FeatureState | undefined; export declare function isFeatureActive(state: FeatureState): boolean; export declare const DESKTOP_FEATURE_KEY = "desktop"; export declare const BROWSER_FEATURE_KEY = "browser"; export declare const LAUNCH_ITEM_FEATURE_KEY = "agentSys.launchItem"; export declare const HIRE_FEATURE_KEY = "agentSys.hire"; export declare const PENCIL_FEATURE_KEY = "pencil"; export declare const DRAW_FEATURE_KEY = "draw"; export declare function setAgentFeatures(agentId: string, features: unknown): void; export declare function getAgentFeatures(agentId: string): Record; export declare function getFeatureState(agentId: string, key: string): FeatureState; export declare function isFeatureEnabled(agentId: string, key: string): boolean; export declare function clearAgentFeatures(agentId: string): void; export declare function getAgentToolPermissions(agentId: string): ToolPermissionPolicy | null; export declare function resolveAgentToolPermissions(agentId: string): ToolPermissionPolicy; export interface AgentCapabilities { skills?: Record; mcp?: Record; plugins?: Record; } export declare const CAPABILITY_TYPES: readonly ["skills", "mcp", "plugins"]; export type CapabilityType = (typeof CAPABILITY_TYPES)[number]; export interface AgentPluginSource { url?: string; sha256?: string; } export declare function setAgentCapabilities(agentId: string, raw: unknown): void; export declare function getAgentCapabilities(agentId: string): AgentCapabilities | null; export declare function getAgentPluginSources(agentId: string): Record | null; export declare function isCapabilityEnabled(agentId: string, type: CapabilityType, name: string): boolean; export declare function instanceFeaturesCacheSize(): number;