export declare function test(re: RegExp, text: string): boolean;
export declare function test(re: RegExp): (text: string) => boolean;
