import { type AuthConfig } from "@auth/core";
import type { Session } from "@auth/core/types";
import { type UniversalMiddleware } from "@universal-middleware/core";
/**
 * Retrieve Auth.js session from Request
 */
export declare function getSession(req: Request, config: Omit<AuthConfig, "raw">): Promise<Session | null>;
/**
 * Add Auth.js session to context
 * @link {@see https://authjs.dev/getting-started/session-management/get-session}
 **/
export declare const authjsSessionMiddleware: UniversalMiddleware;
/**
 * Auth.js route
 * @link {@see https://authjs.dev/getting-started/installation}
 **/
export declare const authjsHandler: ((request: Request<unknown, CfProperties<unknown>>) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
    name: string;
    path: string;
    method: ("GET" | "POST")[];
    immutable: false;
}>;
