/** * Plugin runtime execution layer with capability-gated provider operations. * Implements governed lifecycle hooks and artifact generation without ambient arbitrary execution. */ import type { StorageProvider } from '../storage/index.js'; import { type PluginAuditState } from './plugin-state.js'; import type { LifecycleEventName, PluginRuntimeCapability } from './plugin-manifest.js'; export declare const LIFECYCLE_EVENT_NAMES: readonly ["onInstall", "onEnable", "onDisable", "onBeforeSpawn", "onAfterTask", "onMemoryRefresh"]; export declare function isLifecycleEventName(value: string): value is LifecycleEventName; /** * Result of a provider operation execution. */ export interface ProviderOperationResult { success: boolean; message: string; artifactsGenerated: string[]; error?: string; } /** * Context provided to provider operations. */ export interface ProviderOperationContext { pluginId: string; version: string; squadDir: string; storage: StorageProvider; lifecycle: LifecycleEventName; } /** * Execute a lifecycle hook with capability-gated provider operations. */ export declare function executeLifecycleHook(pluginId: string, version: string, lifecycle: LifecycleEventName, capabilities: PluginRuntimeCapability[], storage: StorageProvider, squadDir: string, audit: PluginAuditState): Promise; /** * Get approved provider names for validation. */ export declare function getApprovedProviderNames(): string[]; //# sourceMappingURL=plugin-runtime.d.ts.map