import { SchemaFnOptions } from '@ioc:Adonis/Core/Env';
/**
 * Casts the string to a number and ensures it is no NaN
 */
export declare function castToNumber(key: string, value: string, message?: string): number;
/**
 * Enforces the value to be of valid number type and the
 * value will also be casted to a number
 */
export declare function number(options?: SchemaFnOptions): (key: string, value?: string | undefined) => number;
export declare namespace number {
    var optional: (options?: SchemaFnOptions | undefined) => (key: string, value?: string | undefined) => number | undefined;
}
