import type { PluginContext, PluginPermission, PluginStorageAPI, PluginLogger } from '../../types/index.js';
/**
 * Creates a restricted storage API for a plugin.
 * Plugins can only access their own data directory.
 */
export declare function createPluginStorage(pluginId: string, dataDir: string): PluginStorageAPI;
/**
 * Creates a scoped logger for a plugin.
 */
export declare function createPluginLogger(pluginId: string): PluginLogger;
/**
 * Creates a restricted PluginContext for a plugin.
 */
export declare function createPluginContext(pluginId: string, permissions: readonly PluginPermission[], dataDir: string): PluginContext;
/**
 * Wraps a plugin handler with timeout and error isolation.
 * Returns the result or throws with a descriptive error.
 */
export declare function withPluginTimeout<T>(pluginId: string, operation: string, fn: () => Promise<T>, timeoutMs?: number): Promise<T>;
//# sourceMappingURL=sandbox.d.ts.map