import { SdFormGenericExpression } from './form-generic-expression.model';
export type SdFormGenericValidation = ValidationExpression | ValidationFunction;
interface ValidationBase {
    alert: 'warning' | 'error';
}
export declare const ValidationAlerts: {
    value: string;
    display: string;
}[];
interface ValidationExpression extends ValidationBase {
    type: 'expression';
    expression: SdFormGenericExpression;
    message: string;
}
interface ValidationFunction extends ValidationBase {
    type: 'function';
    code: string;
}
interface ValidateArgs {
    entity: Record<string, any>;
}
export interface SdFormGenericValidationFunction {
    value: string;
    display: string;
    validate: (args: ValidateArgs) => Promise<string | undefined | null>;
}
export interface SdFormGenericValidationConfiguration {
    functions?: SdFormGenericValidationFunction[];
}
export {};
