import { Secret } from '@poppinss/utils';
import { type Prettify } from '@poppinss/utils/types';
import { schema as envSchema } from '@poppinss/validator-lite';
import { type SchemaFnOptions } from '@poppinss/validator-lite/types';
declare function secret(options?: SchemaFnOptions): (key: string, value?: string) => Secret<string>;
declare namespace secret {
    var optional: () => (_: string, value?: string) => Secret<string> | undefined;
    var optionalWhen: (condition: boolean | ((key: string, value?: string) => boolean), options?: SchemaFnOptions) => (key: string, value?: string) => Secret<string> | undefined;
}
export declare const schema: Prettify<typeof envSchema & {
    secret: typeof secret;
}>;
export {};
