import * as cron from 'cron'; import { MetadataArgsStorage } from './metadata-builder/MetadataArgsStorage'; export * from './container'; export * from './decorators/class/CronController'; export * from './decorators/method/Cron'; /** * Create combined handler. * * @export * @param {(Function[] | string[])} jobs Handlers; either classes directly or the directories where the handlers reside. * @returns {(srv: any) => void} Function that is used to register all endpoints. */ export declare function registerController(jobs: Function[] | string[]): void; /** * Starts a stopped cron. * * @static * @param {string} name Name of the cron to start * @returns {boolean} Flag, wheter or not the cron could be started */ export declare function startCron(name: string): boolean; /** * Stops a running cron job. * * @static * @param {string} name Name of the cron job to stop * @returns {boolean} Flag, wheter or not the cron could be stopped */ export declare function stopCron(name: string): boolean; /** * Executes a cron job manually. * * @static * @param {string} name Name of the cron job to execute * @returns {boolean} Flag, wheter or not the cron could be executed */ export declare function execCron(name: string): boolean; /** * Returns a mounted cron job. * * @static * @param {string} name Name of the cron job to return * @returns {(cron.CronJob | undefined)} Found cron job or undefined if the cron could not be found */ export declare function getCron(name: string): cron.CronJob | undefined; /** * Returns all mounted cron jobs. * * @static * @param {string} [namespace] Namespace to filter the cron jobs * @returns {Map} Found cronjobs */ export declare function getCrons(namespace?: string): Map; /** * Returns the metadata arguments storage. * * @export * @returns {MetadataArgsStorage} Metadata arguments storage. */ export declare function getMetadataArgsStorage(): MetadataArgsStorage;