import type { Response } from 'express';
import { refreshAccessTokenViaProxy } from './accessTokenRefresh';
import type { HostedDemoAuthSessionService } from './HostedDemoAuthSessionService';
type RefreshAccessTokenViaProxyFn = typeof refreshAccessTokenViaProxy;
/**
 * Loads hosted-demo session auth and refreshes the access token when it is near expiry.
 * After a failed refresh, re-reads from the session store so a concurrent successful refresh
 * is not ignored.
 */
export declare const resolveHostedDemoSessionAuthWithRefresh: (params: {
    demoAuthSessionService: HostedDemoAuthSessionService;
    sessionId: string;
    res: Response;
    getProxyUrl: () => string;
    refreshAccessTokenViaProxyFn?: RefreshAccessTokenViaProxyFn;
}) => Promise<ReturnType<HostedDemoAuthSessionService["getAuthForSessionId"]>>;
export {};
//# sourceMappingURL=hostedDemoSessionAuthRefresh.d.ts.map