import type { ConnectRequest, ConnectResponse, NextFunction } from '../types.js'; export declare const getSessionId: () => any; export declare const errors: Record>; export declare const preparePathname: (path: string, req: ConnectRequest) => string; export declare const prepareBaseUrl: (req: ConnectRequest, params?: Record) => string; export declare const getStepChallenge: () => any; export declare const parseWalletUA: (userAgent: string) => { os: string; version: string; jwt: string; }; export declare const isDeepLink: (str: string) => boolean; export declare const isConnectedOnly: (params: any, sessionUserDid?: string) => boolean | string; export interface CreateHandlersOptions { action: string; pathname: string; claims: any; onStart: (...args: any[]) => any; onConnect: (...args: any[]) => any; onAuth: (...args: any[]) => any; onDecline: (...args: any[]) => any; onComplete: (...args: any[]) => any; onExpire: (...args: any[]) => any; onError: (...args: any[]) => any; pathTransformer: (v: string) => string; tokenStorage: any; authenticator: any; authPrincipal: any; persistentDynamicClaims?: boolean; getSignParams?: (req: ConnectRequest) => any; getPathName?: (pathname: string, req: ConnectRequest) => string; options: { tokenKey: string; encKey: string; versionKey: string; cleanupDelay: number; }; } export default function createHandlers({ action, pathname, claims, onStart, onConnect, onAuth, onDecline, onComplete, onExpire, onError, pathTransformer, tokenStorage, authenticator, authPrincipal, persistentDynamicClaims, getSignParams, getPathName, options, }: CreateHandlersOptions): { generateSession: (req: ConnectRequest, res: ConnectResponse) => Promise; expireSession: (req: ConnectRequest, res: ConnectResponse) => Promise; checkSession: (req: ConnectRequest, res: ConnectResponse) => Promise; onAuthRequest: (req: ConnectRequest, res: ConnectResponse) => Promise; onAuthResponse: (req: ConnectRequest, res: ConnectResponse) => Promise; ensureContext: (req: ConnectRequest, _res: ConnectResponse, next: NextFunction) => Promise; ensureSignedJson: (req: ConnectRequest, res: ConnectResponse, next: NextFunction) => void; createExtraParams: (locale: string, params: any, extra?: any) => any; }; //# sourceMappingURL=util.d.ts.map