import { Application } from 'egg';
import { EggPrototype } from '@eggjs/tegg-metadata';
/**
 * Manager class to track registered schedules and handle cleanup
 */
export declare class ScheduleManager {
    private readonly app;
    private readonly registeredSchedules;
    constructor(app: Application);
    /**
     * Register a schedule and track it
     */
    register(proto: EggPrototype, scheduleItem: {
        schedule: object;
        task: any;
        key: string;
    }): void;
    /**
     * Unregister a single schedule by prototype
     */
    unregister(proto: EggPrototype): void;
    /**
     * Unregister all tracked schedules
     * Called during app beforeClose
     */
    unregisterAll(): void;
    /**
     * Get the count of registered schedules
     */
    get size(): number;
}
