import { a as SessionConfig } from '../index-Dn-e4r-J.js';
import 'hono';
import '@hono/zod-openapi';
import '@mesob/common';
import '../index-D90p-4Uh.js';
import 'drizzle-orm/node-postgres';
import 'drizzle-orm';
import 'drizzle-orm/pg-core';
import 'pg';

declare const generateHandle: () => string;
declare const getSessionExpiresAt: (days?: number) => string;
declare const parseDuration: (duration: string) => number;
declare const addDuration: (duration: string) => string;
declare const generateOtpCode: (length?: number) => string;
/**
 * Get session expiration duration based on rememberMe option
 */
declare const getSessionDuration: ({ sessionConfig, rememberMe, }: {
    sessionConfig: SessionConfig;
    rememberMe: boolean;
}) => string;
/**
 * Get the update age threshold based on session type
 */
declare const getSessionUpdateAge: ({ sessionConfig, rememberMe, }: {
    sessionConfig: SessionConfig;
    rememberMe: boolean;
}) => string;
/**
 * Check if session needs refresh based on remaining time
 */
declare const shouldRefreshSession: ({ expiresAt, updateAge, }: {
    expiresAt: string;
    updateAge: string;
}) => boolean;
/**
 * Get new expiration time for session refresh
 */
declare const getRefreshedExpiresAt: ({ sessionConfig, rememberMe, }: {
    sessionConfig: SessionConfig;
    rememberMe: boolean;
}) => string;
/**
 * Check if session is expired
 */
declare const isSessionExpired: (expiresAt: string) => boolean;

export { addDuration, generateHandle, generateOtpCode, getRefreshedExpiresAt, getSessionDuration, getSessionExpiresAt, getSessionUpdateAge, isSessionExpired, parseDuration, shouldRefreshSession };
