/**
 * App Context
 *
 * Provides a sandboxed runtime context for apps.
 * Apps receive an AppContext when they activate, giving them controlled
 * access to runtime functionality.
 */
import type { SmartCanvasRuntime } from '../runtime';
import type { AppContext } from './types';
/**
 * Options for creating an AppContext.
 */
export interface CreateAppContextOptions {
    /** The app ID */
    appId: string;
    /** The runtime instance */
    runtime: SmartCanvasRuntime;
    /** Whether this is a built-in app (prevents executor override) */
    isBuiltIn?: boolean;
}
/**
 * Create a sandboxed AppContext for an app.
 *
 * The context provides controlled access to runtime functionality,
 * with state namespaced to the app.
 */
export declare function createAppContext(options: CreateAppContextOptions): AppContext;
/**
 * Clean up all resources registered by an app context.
 */
export declare function cleanupAppContext(appId: string, runtime: SmartCanvasRuntime): void;
