import { ConfirmResponse } from '../types/OAuthCsrf';
export declare function generateAndStoreNonce(serviceId: string): string;
export declare function verifyAndClearNonce(serviceId: string, nonce: string): boolean;
export declare function clearNonce(serviceId: string): void;
export declare function callConfirmEndpoint(params: {
    unifiedApi: string;
    serviceId: string;
    confirmToken: string;
    connectionsUrl: string;
    headers: Record<string, string>;
}): Promise<ConfirmResponse>;
