import { Observable } from 'rxjs';
import { IValidator, ValidatorContext } from '..';
export declare function when<V = unknown>(condition: (ctx: ValidatorContext<V>) => boolean): (validator: IValidator<V>) => IValidator<V>;
export declare function whenAsync<V = unknown>(condition: (formValue: ValidatorContext<V>) => Promise<boolean> | Observable<boolean>): (validator: IValidator<V>) => import("..").IAsyncValidator<V>;
