Spaces:
Build error
Build error
File size: 631 Bytes
75fefa7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | // Global types for sandbox file management
export interface SandboxFile {
content: string;
lastModified: number;
}
export interface SandboxFileCache {
files: Record<string, SandboxFile>;
lastSync: number;
sandboxId: string;
manifest?: any; // FileManifest type from file-manifest.ts
}
export interface SandboxState {
fileCache: SandboxFileCache | null;
sandbox: any; // E2B sandbox instance
sandboxData: {
sandboxId: string;
url: string;
} | null;
}
// Declare global types
declare global {
var activeSandbox: any;
var sandboxState: SandboxState;
var existingFiles: Set<string>;
}
export {}; |