export default function (url: string, rules: string|Array|void): boolean;