28 lines
377 B
TypeScript
28 lines
377 B
TypeScript
/**
|
|
*
|
|
* @public
|
|
*/
|
|
declare class Regex {
|
|
|
|
/**
|
|
* only for testing,
|
|
*
|
|
* @param type "debug"
|
|
*
|
|
* @example
|
|
*
|
|
* new Feat("debug")
|
|
*
|
|
*/
|
|
constructor(type: "debug");
|
|
|
|
readonly pattern: string;
|
|
|
|
constructor(pattern: string);
|
|
|
|
public search(subject: string): RegexResult;
|
|
|
|
public __tostring(): string;
|
|
|
|
}
|