import { Context } from "hono";
import { DataAdapters } from "@authhero/adapter-interfaces";
import { Bindings, Variables } from "../types";
export interface UserSessionCleanupParams {
    tenantId?: string;
    userId?: string;
}
/**
 * Context-free session cleanup for use in scheduled handlers / cron jobs.
 * Deletes expired login_sessions, sessions, and refresh_tokens, optionally
 * scoped to a tenant and/or user.
 */
export declare function cleanupSessions(data: DataAdapters, params?: UserSessionCleanupParams): Promise<void>;
/**
 * Per-request wrapper around cleanupSessions. Designed to be called with
 * waitUntil after creating a new login session.
 */
export declare function cleanupUserSessions(ctx: Context<{
    Bindings: Bindings;
    Variables: Variables;
}>, params: UserSessionCleanupParams): Promise<void>;
