/** * Manages short-lived sessions for admin passkey authentication. * * Sessions are opaque hex tokens stored in an in-memory `Map`. They are * validated in {@link validateAdminAuth} as an alternative to the static * bearer token. Expired sessions are lazily pruned on every create/validate * call and periodically via a cleanup interval. * * Future: migrate to DID/DWN-based auth (see https://github.com/enboxorg/enbox/issues/546). */ export declare class AdminSessionManager { #private; constructor(ttlSeconds?: number); /** * Creates a new session and returns the opaque token. */ create(): string; /** * Validates a session token. Returns `true` if the token is valid and not expired. */ validate(token: string): boolean; /** * Revokes a session token. */ revoke(token: string): void; /** * Returns the number of active (non-expired) sessions. */ get size(): number; /** * Stops the periodic cleanup timer. */ destroy(): void; } //# sourceMappingURL=admin-session.d.ts.map