import { ValidationCallback } from '../types';
import RuleContract from './ruleContract';
declare class ClosureValidationRule extends RuleContract {
    /**
     * The callback that validates the attribute
     */
    callback: Function | ValidationCallback;
    /**
     * Indicates if the validation callback failed.
     */
    failed: boolean;
    constructor(callback: Function | ValidationCallback);
    /**
     * Determine if the validation rule passes.
     */
    passes(value: any, attribute: string): boolean | Promise<boolean>;
}
export default ClosureValidationRule;
