import { Activity } from "./activity"; import { Profiler } from "./profiler"; export declare class ActivityZone { profiler: Profiler; hasMicroTasks: boolean; hasMacroTasks: boolean; finished: boolean; onStart: (activity: Activity) => void; onFinish: (activity: Activity) => void; onEnter: (activity: Activity) => void; onLeave: (activity: Activity) => void; constructor(profiler: Profiler); checkFinish(activity: Activity): void; onInvokeTask(delegate: ZoneDelegate, current: Zone, target: Zone, task: Task, applyThis: any, applyArgs: any): any; onHasTask(parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, hasTaskState: HasTaskState): void; private fork(activity); run(fn: () => T, activityFactory: () => Activity): T; }