* @license MIT
*/
-import { LinkMatcherValidationCallback } from './Types';
+import { LinkMatcherOptions } from './Interfaces';
+import { LinkMatcherHandler, LinkMatcherValidationCallback } from './Types';
export interface IBrowser {
isNode: boolean;
export interface ITerminal {
element: HTMLElement;
rowContainer: HTMLElement;
+ selectionContainer: HTMLElement;
+ charMeasure: ICharMeasure;
textarea: HTMLTextAreaElement;
ybase: number;
ydisp: number;
emit(event: string, data: any);
}
+export interface ISelectionManager {
+ selectionText: string;
+}
+
export interface ICharMeasure {
width: number;
height: number;
measure(): void;
}
+export interface ILinkifier {
+ linkifyRow(rowIndex: number): void;
+ attachHypertextLinkHandler(handler: LinkMatcherHandler): void;
+ registerLinkMatcher(regex: RegExp, handler: LinkMatcherHandler, options?: LinkMatcherOptions): number;
+ deregisterLinkMatcher(matcherId: number): boolean;
+}
+
interface ICircularList<T> {
length: number;
maxLength: number;
* false if invalid.
*/
validationCallback?: LinkMatcherValidationCallback;
-}
-
-/**
- *
- * @param a
- */
-function a(a) {
+ /**
+ * The priority of the link matcher, this defines the order in which the link
+ * matcher is evaluated relative to others, from highest to lowest. The
+ * default value is 0.
+ */
+ priority?: number;
}
/**