import 'requestidlecallback';
export interface Task {
    id: string;
    interruptSchedule: () => void;
    isInterrupt: boolean;
}
export declare function makeHash(length?: number): string;
export declare function schedule(task: (...args: any[]) => void, canExec: (...args: any[]) => boolean, finished?: (...args: any[]) => void): Task;
