import { Src, CtxType, ActivityConfigure } from '@ts-ioc/activities'; import { NodeActivity } from '@ts-ioc/build'; /** * ServeConfigure * * @export * @interface ServeConfigure */ export interface ServeConfigure extends ActivityConfigure { /** * serve port. * * @type {number} * @memberof ServeConfigure */ port?: number; /** * dirs. * * @type {CtxType} * @memberof ServeConfigure */ dirs: CtxType; } /** * Serve activity. * * @export * @class ServeActivity * @extends {BuildActivity} */ export declare class ServeActivity extends NodeActivity { /** * serve port. * * @type {number} * @memberof ServeActivity */ port: number; /** * dirs. * * @type {Src} * @memberof ServeActivity */ dirs: Src; constructor(); onActivityInit(config: ServeConfigure): Promise; /** * before run sequence. * * @protected * @returns {Promise} * @memberof ServeActivity */ protected execute(): Promise; static getClassAnnations(): any; }