/**
 * Plugin Worker Script
 * This script runs in an isolated Worker Thread and executes plugin code
 * with restricted access to system resources.
 *
 * Security measures:
 * - Blocked dangerous Node.js modules based on permissions
 * - Restricted process.env access
 * - Timeout enforcement via parent thread
 * - Memory limits via Worker resourceLimits
 */
export interface WorkerMessage {
    type: 'init' | 'activate' | 'deactivate' | 'call' | 'response' | 'error' | 'log' | 'register-tool' | 'register-command';
    id?: string;
    payload?: unknown;
}
export interface WorkerInitData {
    pluginPath: string;
    pluginId: string;
    dataDir: string;
    config: Record<string, unknown>;
    permissions: PluginPermissionsWorker;
}
export interface PluginPermissionsWorker {
    filesystem?: boolean | string[];
    network?: boolean | string[];
    shell?: boolean;
    env?: boolean;
}
/**
 * Validate a dynamic import before allowing it
 * Called by the custom import handler (reserved for future use with ES module loader hooks)
 */
declare function _validateImport(specifier: string): void;
export { _validateImport as validateBlockedImport };
export type { WorkerMessage as PluginWorkerMessage, WorkerInitData as PluginWorkerInitData };
