import { EggContext } from '@eggjs/tegg';
import { AbstractController } from './AbstractController';
import { DownloadInfo, UpstreamRegistryInfo } from '../../core/service/CacheService';
type SiteTotalData = LegacyInfo & SiteEnvInfo & TotalInfo;
type LegacyInfo = {
    source_registry: string;
    changes_stream_registry: string;
    sync_changes_steam: any;
};
type SiteEnvInfo = {
    sync_model: string;
    sync_binary: boolean;
    instance_start_time: Date;
    node_version: string;
    app_version: string;
    engine: string;
    cache_time: string;
};
type TotalInfo = {
    last_package: string;
    last_package_version: string;
    doc_count: number | bigint;
    doc_version_count: number | bigint;
    update_seq: number | bigint;
    download: DownloadInfo;
    upstream_registries?: UpstreamRegistryInfo[];
};
export declare class HomeController extends AbstractController {
    private readonly cacheService;
    private readonly homeService;
    showTotal(): Promise<SiteTotalData>;
    ping(ctx: EggContext): Promise<{
        pong: boolean;
        use: number;
    }>;
    miscPost(ctx: EggContext): Promise<void>;
    miscGet(ctx: EggContext): Promise<void>;
}
export {};
