import { Action } from '@ngrx/store'; import { Observable, OperatorFunction } from 'rxjs'; /** Represents config with named paratemeters for act */ export interface ActConfig { project: (input: Input, index: number) => Observable; error: (error: any, input: Input) => ErrorAction; complete?: (count: number, input: Input) => CompleteAction; operator?: (project: (input: Input, index: number) => Observable) => OperatorFunction; unsubscribe?: (count: number, input: Input) => UnsubscribeAction; } /** * Wraps project fn with error handling making it safe to use in Effects. * Takes either config with named properties that represent different possible * callbacks or project/error callbacks that are required. */ export declare function act(project: (input: Input, index: number) => Observable, error: (error: any, input: Input) => ErrorAction): (source: Observable) => Observable; export declare function act(config: ActConfig): (source: Observable) => Observable;