export { }; declare global { /** * Titan Runtime Global Object */ const t: Titan.Runtime; } export namespace Titan { interface Runtime { /** * Log messages to the Titan console */ log: LogInterface; /** * Read file content */ read(path: string): string; /** * Fetch API wrapper */ fetch(url: string, options?: any): Promise; /** * Database operations */ db: { query(sql: string, params?: any[]): Promise; }; /** * Titan Extensions */ [key: string]: any; } interface LogInterface { (...args: any[]): void; info(...args: any[]): void; warn(...args: any[]): void; error(...args: any[]): void; } }