1 | import { MacAddress } from "../../types";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class IdentifierCache {
|
12 | username: MacAddress;
|
13 | _cache: Record<string, number>;
|
14 | _usedCache: Record<string, number> | null;
|
15 | _savedCacheHash: string;
|
16 | constructor(username: MacAddress);
|
17 | startTrackingUsage(): void;
|
18 | stopTrackingUsageAndExpireUnused(): void;
|
19 | getCache(key: string): number;
|
20 | setCache(key: string, value: number): number;
|
21 | getAID(accessoryUUID: string): number;
|
22 | getIID(accessoryUUID: string, serviceUUID: string, serviceSubtype?: string, characteristicUUID?: string): number;
|
23 | getNextAID(): number;
|
24 | getNextIID(accessoryUUID: string): number;
|
25 | save(): void;
|
26 | /**
|
27 | * Persisting to File System
|
28 | */
|
29 | static persistKey(username: MacAddress): string;
|
30 | static load(username: MacAddress): IdentifierCache | null;
|
31 | static remove(username: MacAddress): void;
|
32 | }
|
33 | //# sourceMappingURL=IdentifierCache.d.ts.map |
\ | No newline at end of file |