UNPKG

@iota-big3/sdk-production

Version:

Production readiness tools and utilities for SDK

63 lines 1.28 kB
/** * SDK Playground * Interactive environment for testing SDK features */ export interface PlaygroundConfig { port?: number; allowedModules?: string[]; timeout?: number; memoryLimit?: number; } export interface CodeExecution { id: string; code: string; result?: any; error?: string; logs: string[]; executionTime: number; } export declare class SDKPlayground { private config; private app; private server; private wss; private executions; constructor(config?: PlaygroundConfig); /** * Start the playground server */ start(): Promise<void>; /** * Setup Express routes */ private setupRoutes; /** * Setup WebSocket for real-time execution */ private setupWebSocket; /** * Execute code in sandbox */ private executeCode; /** * Get mock SDK module for playground */ private getMockModule; /** * Get package documentation */ private getPackageDocs; /** * Get example code snippets */ private getExamples; /** * Generate unique ID */ private generateId; /** * Get playground HTML */ private getPlaygroundHTML; } //# sourceMappingURL=sdk-playground.d.ts.map