import { ValidationRuntimeOptions, DurationUnits } from '@ioc:Adonis/Core/Validator';
/**
 * Return type of the compile function
 */
export type CompileReturnType = {
    operator: '>' | '<' | '>=' | '<=';
    offset?: {
        duration: number;
        unit: DurationUnits;
        hasDayDuration: boolean;
    };
    ref?: string;
};
/**
 * Compiles an offset based date rule
 */
export declare function compile(ruleName: string, operator: '>' | '<' | '>=' | '<=', [duration, unit]: any[]): {
    compiledOptions: CompileReturnType;
};
/**
 * Validates offset based date rules
 */
export declare function validate(ruleName: string, errorMessage: string, value: any, compiledOptions: CompileReturnType, { errorReporter, pointer, arrayExpressionPointer, refs }: ValidationRuntimeOptions): void;
