import { ErrorBag, DBCheck, Options } from './@types';
export default class Common<F extends string = string> {
    protected errors: ErrorBag<F>;
    private status;
    protected field: string;
    protected options: Options | DBCheck;
    protected index: number;
    protected shouldProceed: boolean;
    /**
     * resets the instance and makes it ready for the next validation process
     *
     * @param field next field to validate
     * @param options validation options
     * @param index field value index
     */
    reset(field: string, options: Options | DBCheck, index: number): this;
    /**
     * sets the given error message
     */
    setError(errorMessage: string, value: string): false;
    /**
     * sets the error bag if given
     */
    setErrorBag(errorBag: ErrorBag<F>): this;
    /**
     * returns the errobag object containing all errors
     */
    getErrorBag(): ErrorBag<F>;
    /**
     * returns true if the last validation succeeded
     */
    succeeds(): boolean;
    /**
     * returns true if the last validation failed
     */
    fails(): boolean;
}
