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<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[] | undefined): T; runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[] | undefined, name?: string | undefined): T; runGuarded<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[] | undefined): T; runOutsideAngular<T>(fn: (...args: any[]) => T): T; static isInAngularZone(): boolean; static assertInAngularZone(): void; static assertNotInAngularZone(): void;}