An injectable service for executing work inside or outside of the Angular zone.
class NgZone { readonly hasPendingMacrotasks: boolean; readonly hasPendingMicrotasks: boolean; readonly isStable: boolean; readonly onUnstable: EventEmitter<any>; readonly onMicrotaskEmpty: EventEmitter<any>; readonly onStable: EventEmitter<any>; readonly onError: EventEmitter<any>; run(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T; runTask(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[], name?: string): T; runGuarded(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T; runOutsideAngular(fn: (...args: any[]) => T): T; static isInAngularZone(): boolean; static assertInAngularZone(): void; static assertNotInAngularZone(): void;}