/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { IDisposeStrategy } from "../DisposeStrategy"; import type { ResourceScope } from "../ResourceScope"; export declare class InactivityStrategy implements IDisposeStrategy { private readonly onError?; private readonly timers; private readonly idleMs; constructor(idleMs: number, onError?: ((key: string, err: unknown) => void) | undefined); onRegister(key: string, disposer: () => Promise, _scope: ResourceScope): () => Promise; /** * Called by `ResourceScope.runStart()` before each run. Clears every * pending inactivity timer — any resource still registered is part of * the new run, and we never want a stale timer to dispose mid-run. * The next `onRunComplete` re-arms the timers from scratch. */ onRunStart(_scope: ResourceScope): void; touch(key: string): void; onRunComplete(scope: ResourceScope): Promise; onScopeDestroy(scope: ResourceScope): Promise; } //# sourceMappingURL=InactivityStrategy.d.ts.map