import { Identity } from './Identity.js'; import { IIdentityProvider } from './IIdentityProvider.js'; /** * Implements {@link IIdentityProvider} using {@link AsyncLocalStorage} to scope the identity to the active async call context. */ export declare class IdentityProvider implements IIdentityProvider { private readonly _storage; /** @inheritdoc */ getCurrent(): Identity; /** Runs an async or synchronous operation as the given identity, restoring the caller's identity afterward. */ run(identity: Identity, callback: () => T): T; /** @inheritdoc */ setCurrentIdentity(identity: Identity): void; /** @inheritdoc */ clearCurrentIdentity(): void; } //# sourceMappingURL=IdentityProvider.d.ts.map