import { Type } from "@angular/core"; import { Observable, TeardownLogic } from "rxjs"; /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface EffectMetadata { name: string; path: string; type: Type; options: EffectOptions & T; adapter: Type; args: number[]; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export declare type EffectAdapter = CreateEffectAdapter & NextEffectAdapter; /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface CreateEffectAdapter { create?(factory: TFunction, metadata: EffectMetadata): Observable | TeardownLogic; next?(value: any, metadata: EffectMetadata): void; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface NextEffectAdapter { next?(value: TValue, metadata: EffectMetadata): void; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface DefaultEffectOptions { whenRendered?: boolean; detectChanges?: boolean; markDirty?: boolean; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface BindEffectOptions extends DefaultEffectOptions { bind?: TKey; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface AssignEffectOptions extends DefaultEffectOptions { assign?: boolean; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface AdapterEffectOptions extends DefaultEffectOptions { adapter?: Type>; adapterOptions?: any; } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export interface EffectOptions extends DefaultEffectOptions, BindEffectOptions, AdapterEffectOptions, AssignEffectOptions { } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export declare abstract class EffectOptions { } /** * @deprecated Will be replaced by composition API in 10.0.0 */ export declare type ObservableSources = { [key in keyof T]: Observable; };