UNPKG

cnpmcore

Version:
18 lines (17 loc) 801 B
import { EggContext } from '@eggjs/tegg'; import { Static } from 'egg-typebox-validate/typebox'; import { AbstractController } from '../AbstractController'; import { SearchQueryOptions } from '../../typebox'; export declare class SearchPackageController extends AbstractController { private readonly packageSearchService; search(ctx: EggContext, text: Static<typeof SearchQueryOptions>['text'], from: Static<typeof SearchQueryOptions>['from'], size: Static<typeof SearchQueryOptions>['size']): Promise<{ objects: (import("../../../repository/SearchRepository").SearchManifestType | undefined)[]; total: number; }>; sync(fullname: string): Promise<{ package: string | undefined; }>; delete(fullname: string): Promise<{ package: string; }>; }