aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/activity-manager.d.ts42
1 files changed, 42 insertions, 0 deletions
diff --git a/dist/activity-manager.d.ts b/dist/activity-manager.d.ts
new file mode 100644
index 0000000..75f2193
--- /dev/null
+++ b/dist/activity-manager.d.ts
@@ -0,0 +1,42 @@
+import { Service } from "./service";
+import { Subscription } from "./subscription";
+
+export declare class ActivityManager {
+ public constructor(service: Service, idleTimeout: number);
+
+ public readonly idleTimeout: number;
+
+ public readonly service: Service;
+
+ public exitOnTimeout: boolean;
+
+ public useDummyActivity: boolean;
+
+ private readonly _activities: { [id: string]: Subscription };
+
+ private _counter: number;
+
+ private _dummyActivityId: number;
+
+ private _idleTimer: NodeJS.Timeout | null;
+
+ public adopt(): any
+
+ public complete(): any;
+
+ public create(): any;
+
+ private _add(id: string, activity: Subscription): void;
+
+ private _createActual(): any;
+
+ private _createDummy(): any;
+
+ private _createInternal(): any;
+
+ private _remove(id: string): void;
+
+ private _startTimer(): void;
+
+ private _stopTimer(): void;
+}