import type { SocialLoginError, SocialLoginErrorCode } from './definitions'; export declare const USER_CANCELLED_CODE: SocialLoginErrorCode; export declare function createUserCancelledError(message: string): SocialLoginError; /** * Detects cancellation-like messages and marks them with USER_CANCELLED. * Falls back to a regular Error when the message doesn't look like a user cancellation. */ export declare function inferUserCancelledError(message: string): SocialLoginError;