import * as i0 from '@angular/core'; import { ViewContainerRef, Type, ChangeDetectorRef } from '@angular/core'; import * as rxjs from 'rxjs'; import { Observable, Subject } from 'rxjs'; import { TranslateLoader, TranslatePipe } from '@ngx-translate/core'; import { WMLMotionUIProperty } from '@windmillcode/wml-components-base'; import * as _angular_core_testing from '@angular/core/testing'; import { HttpHandler, HttpResponse } from '@angular/common/http'; import { Route } from '@angular/router'; declare let addCustomComponent: (vcf: ViewContainerRef, cpnt: Type, props: any) => i0.ComponentRef; declare class WMLAngularMotionUIProperty extends WMLMotionUIProperty { constructor(props?: Partial); } declare class WMLAngularCustomComponent { constructor(params?: Partial); cpnt: Type; props: P; } declare class WMLAngularModuleForRootProps { constructor(props?: Partial); ngxTranslateLoaderFactory: () => WMLNGXTranslateLoader; } declare class WMLNGXTranslateLoader implements TranslateLoader { private i18nLocation; constructor(i18nLocation?: (lang: string) => any); getTranslation(lang: string): rxjs.Observable; } declare class WMLNGXTranslatePipe extends TranslatePipe { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class WMLNGXTranslateMockPipe { transform: (myStr: any) => any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class WMLAngularTestUtils { constructor(props?: Partial); static isInit: boolean; mock: any; mockImports: any[]; mockProviders: any[]; mockDeclarations: any[]; private checkForSingleton; configureTestingModuleForComponents: (targetCpnt: Type, routes?: Route[]) => Promise; configureTestingModuleForStandaloneComponents: (targetCpnt: Type, routes?: Route[]) => Promise; configureTestingModuleForServices: (targetService: Function) => any; /** * @ experimental */ grabComponentInstance: (targetCpnt: Type) => { fixture: _angular_core_testing.ComponentFixture; cpnt: any; }; spyOnForES6Imports(target: T, prop: keyof T): any; } declare let createBasicObservableError: (err?: Error) => Observable; declare class WMLAngularTestHttpHandler extends HttpHandler { constructor(props?: Partial); successHandle$: (resp?: HttpResponse) => Observable>; errorHandle$: (resp?: HttpResponse) => Observable>; handle$: Observable>; updateHandle: (handle$: any) => void; handle: () => Observable>; } type Constructor = new (...args: any[]) => T; declare function WMLComponentBaseZeroPropsMixin(Base?: TBase): Constructor; declare const WMLComponentBaseZeroProps_base: Constructor>; declare class WMLComponentBaseZeroProps extends WMLComponentBaseZeroProps_base { } /** * @ meant to be a base or abstract class use directily if you know what you are doing */ declare class WMLComponentBaseZero { props?: T | any; ngUnsub: Subject; cdref?: ChangeDetectorRef; classPrefix: Function; idPrefix: Function; myClass: string; myId?: string; constructor(props?: Partial<{ classPrefix: string; idPrefix: string; }>); listenForSetState: () => any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>; } export { WMLAngularCustomComponent, WMLAngularModuleForRootProps, WMLAngularMotionUIProperty, WMLAngularTestHttpHandler, WMLAngularTestUtils, WMLComponentBaseZero, WMLComponentBaseZeroProps, WMLComponentBaseZeroPropsMixin, WMLNGXTranslateLoader, WMLNGXTranslateMockPipe, WMLNGXTranslatePipe, addCustomComponent, createBasicObservableError };