import { Request } from 'express';
import { Pool } from 'mysql';
export interface ValidationRules {
    [key: string]: string | string[];
}
export interface ValidationError {
    [key: string]: string;
}
export interface ValidationResult {
    failed: boolean;
    errors: ValidationError | null;
}
export interface ExtendedRequest extends Request {
    body: Record<string, any>;
    files?: Record<string, any>;
    customValidators?: Record<string, CustomValidator>;
}
export type CustomValidator = (value: any, req: ExtendedRequest) => boolean | string;
export declare const setDatabase: (pool: Pool) => void;
export declare const getDatabase: () => Pool | null;
