UNPKG

cnpmcore

Version:
39 lines (38 loc) 1.22 kB
/// <reference types="node" /> import { EggContext } from '@eggjs/tegg'; import { AbstractController } from './AbstractController'; import { BinaryName } from '../../../config/binaries'; export declare class BinarySyncController extends AbstractController { private binarySyncerService; showBinaryHTML(ctx: EggContext): Promise<string>; listBinaries(): Promise<{ name: string; category: string; description: string; distUrl: string; repoUrl: string; type: string; url: string; }[]>; showBinary(ctx: EggContext, binaryName: BinaryName, subpath: string): Promise<import("stream").Readable | { id: string; category: string; name: string; date: string; type: string; size: number | undefined; url: string; modified: Date; }[] | undefined>; showBinaryIndex(ctx: EggContext, binaryName: BinaryName): Promise<import("stream").Readable | { id: string; category: string; name: string; date: string; type: string; size: number | undefined; url: string; modified: Date; }[] | undefined>; private formatItems; }