import { AfterContentInit } from '@angular/core'; import { EventEmitter } from '@angular/core'; import * as i0 from '@angular/core'; import { InjectionToken } from '@angular/core'; import { OnDestroy } from '@angular/core'; export declare class BidiModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Directive to listen for changes of direction of part of the DOM. * * Provides itself as Directionality such that descendant directives only need to ever inject * Directionality to get the closest direction. */ export declare class Dir implements Directionality, AfterContentInit, OnDestroy { /** Normalized direction that accounts for invalid/unsupported values. */ private _dir; /** Whether the `value` has been set to its initial value. */ private _isInitialized; /** Direction as passed in by the consumer. */ _rawDir: string; /** Event emitted when the direction changes. */ readonly change: EventEmitter; /** @docs-private */ get dir(): Direction; set dir(value: Direction | 'auto'); /** Current layout direction of the element. */ get value(): Direction; /** Initialize once default value has been set. */ ngAfterContentInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Injection token used to inject the document into Directionality. * This is used so that the value can be faked in tests. * * We can't use the real document in tests because changing the real `dir` causes geometry-based * tests in Safari to fail. * * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests * themselves use things like `querySelector` in test code. * * This token is defined in a separate file from Directionality as a workaround for * https://github.com/angular/angular/issues/22559 * * @docs-private */ export declare const DIR_DOCUMENT: InjectionToken; export declare type Direction = 'ltr' | 'rtl'; /** * The directionality (LTR / RTL) context for the application (or a subtree of it). * Exposes the current direction and a stream of direction changes. */ export declare class Directionality implements OnDestroy { /** The current 'ltr' or 'rtl' value. */ readonly value: Direction; /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */ readonly change: EventEmitter; constructor(_document?: any); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare namespace i1 { export { Dir } } export { }