import { MonoTypeOperatorFunction } from 'rxjs'; import { PredicateFunction } from '../types'; export interface ValidateParams { validation: PredicateFunction; error?: string; } /** * Validates the source emitted value, throws an error when validation * doesn't pass * @param params - * - validation: predicate function to test emitted value * - error: message in case of error * @returns an operator function that validates emitted values */ export declare function validate({ validation, error, }: ValidateParams): MonoTypeOperatorFunction;