2016-07-21 22:16:45 +00:00
|
|
|
/**
|
|
|
|
* allows you to easily keep track of a bunch of strings;
|
|
|
|
*/
|
2016-07-23 02:39:42 +00:00
|
|
|
export interface triggerFunction {
|
|
|
|
(): boolean;
|
|
|
|
}
|
2016-07-21 22:16:45 +00:00
|
|
|
export declare class Stringmap {
|
|
|
|
private _stringArray;
|
2016-07-23 02:39:42 +00:00
|
|
|
private _triggerUntilTrueFunctionArray;
|
2016-07-21 22:16:45 +00:00
|
|
|
constructor();
|
|
|
|
/**
|
|
|
|
* add a string to the Stringmap
|
|
|
|
*/
|
|
|
|
addString(stringArg: string): void;
|
|
|
|
/**
|
|
|
|
* removes a string from Stringmap
|
|
|
|
*/
|
|
|
|
removeString(stringArg: string): void;
|
2016-07-23 02:39:42 +00:00
|
|
|
/**
|
|
|
|
* wipes the Stringmap
|
|
|
|
*/
|
|
|
|
wipe(): void;
|
2016-07-21 22:16:45 +00:00
|
|
|
/**
|
|
|
|
* check if string is in Stringmap
|
|
|
|
*/
|
|
|
|
checkString(stringArg: string): boolean;
|
2016-07-22 12:59:09 +00:00
|
|
|
/**
|
|
|
|
* checks stringPresence with minimatch
|
|
|
|
*/
|
2016-07-23 02:39:42 +00:00
|
|
|
checkMinimatch(miniMatchStringArg: string): boolean;
|
|
|
|
/**
|
|
|
|
* checks if the Stringmap is empty
|
|
|
|
*/
|
|
|
|
checkIsEmpty(): boolean;
|
|
|
|
/**
|
|
|
|
* notifies triggers
|
|
|
|
*/
|
|
|
|
private notifyTrigger();
|
|
|
|
/**
|
|
|
|
* register a new trigger
|
|
|
|
*/
|
|
|
|
registerUntilTrue(functionArg: triggerFunction, doFunctionArg: any): void;
|
2016-07-21 22:16:45 +00:00
|
|
|
}
|