import { ZodObject } from 'zod';
import { ApiRouteConfig, CronConfig, EventConfig, Flow, Step } from './types';
import { Printer } from './printer';
type FlowEvent = 'flow-created' | 'flow-removed' | 'flow-updated';
type StepEvent = 'step-created' | 'step-removed' | 'step-updated';
export declare class LockedData {
    readonly baseDir: string;
    flows: Record<string, Flow>;
    activeSteps: Step[];
    devSteps: Step[];
    printer: Printer;
    private stepsMap;
    private handlers;
    private stepHandlers;
    constructor(baseDir: string);
    on(event: FlowEvent, handler: (flowName: string) => void): void;
    onStep(event: StepEvent, handler: (step: Step) => void): void;
    eventSteps(): Step<EventConfig<ZodObject<any>>>[];
    apiSteps(): Step<ApiRouteConfig>[];
    cronSteps(): Step<CronConfig>[];
    updateStep(oldStep: Step, newStep: Step): boolean;
    createStep(step: Step): boolean;
    deleteStep(step: Step): void;
    private createFlow;
    private removeFlow;
    private onFlowUpdated;
    private isValidStep;
}
export {};
