import { Context, Next } from '@tego/server';
import { CloudCompiler } from '../services/cloud-compiler';
import { RemoteCodeFetcher } from '../services/remote-code-fetcher';
export declare class CloudLibrariesController {
    compiler: CloudCompiler;
    remoteCodeFetcher: RemoteCodeFetcher;
    private logger;
    update(ctx: Context, next: Next): Promise<void>;
    publish(ctx: Context, next: Next): Promise<void>;
    destroy(ctx: Context, next: Next): Promise<void>;
    /**
     * 同步远程代码
     * 从远程地址获取代码并返回
     * 注意：此函数用于手动同步，总是获取最新代码，不检查缓存
     * 缓存机制在 cloud-libraries-service.ts 中的编译时使用
     */
    syncRemoteCode(ctx: Context, next: Next): Promise<void>;
}
