import { type DelayService, type LogService } from 'common-services';
import { type Injector, type Service } from 'knifecycle';
import { type StringValue } from 'ms';
import { type WhookCommandDefinition, type WhookCommandHandler } from '../types/commands.js';
import { type WhookCronsDefinitionsService } from '../services/CRONS_DEFINITIONS.js';
export declare const definition: {
    readonly name: "cronSchedule";
    readonly description: "A command to run a cron schedules for a given time frame";
    readonly example: "whook cronSchedule --name handleTime --startDate '1970-01-01T00:00:00.000Z' --endDate '1970-01-01T00:00:00.000Z'";
    readonly arguments: [{
        readonly name: "name";
        readonly description: "The cron handler name";
        readonly required: true;
        readonly schema: {
            readonly type: "string";
        };
    }, {
        readonly name: "startDate";
        readonly description: "The schedule start date";
        readonly required: true;
        readonly schema: {
            readonly type: "string";
            readonly format: "date-time";
            readonly default: string;
        };
    }, {
        readonly name: "endDate";
        readonly description: "The schedule end date";
        readonly required: true;
        readonly schema: {
            readonly type: "string";
            readonly format: "date-time";
            readonly default: string;
        };
    }, {
        readonly name: "delay";
        readonly description: "The delay between each run";
        readonly schema: {
            readonly type: "string";
            readonly default: "1s";
        };
    }, {
        readonly name: "body";
        readonly description: "Eventually override body";
        readonly schema: {
            readonly type: "string";
        };
    }];
};
declare const _default: import("knifecycle").ServiceInitializer<{
    CRONS_DEFINITIONS: WhookCronsDefinitionsService;
    $injector: Injector<Service>;
    log: LogService;
    delay: DelayService;
}, WhookCommandHandler<{
    name: string;
    startDate: string;
    endDate: string;
    delay: StringValue;
    body: string;
}, WhookCommandDefinition>>;
export default _default;
