export default function CustomRule(name: string, error: string, parameter?: any): (target: any, key: string) => any;