export { detectDeepIOS, detectIOSArchPattern } from './mobile-detector-ios.js';
export { detectDeepAndroid, detectAndroidArchPattern } from './mobile-detector-android.js';
// -- Framework mapping utilities ----------------------------------------------
const IOS_FW_SET = new Set(['swiftui', 'uikit', 'combine', 'coredata', 'vapor']);
const ANDROID_FW_SET = new Set(['jetpack-compose', 'android-views', 'kotlin-multiplatform']);
const CROSS_FW_SET = new Set(['flutter', 'react-native', 'expo', 'kmp']);
export function getMobilePlatformFromFramework(framework) {
    const lower = framework.toLowerCase();
    if (IOS_FW_SET.has(lower)) {
        return 'ios';
    }
    if (ANDROID_FW_SET.has(lower)) {
        return 'android';
    }
    if (CROSS_FW_SET.has(lower)) {
        return 'cross-platform';
    }
    return null;
}
const FW_NAME_MAP = {
    swiftui: 'swiftui',
    uikit: 'uikit',
    combine: 'combine',
    coredata: 'coredata',
    cloudkit: 'cloudkit',
    'jetpack-compose': 'compose',
    compose: 'compose',
    'android-views': 'xml-views',
    'xml-views': 'xml-views',
    room: 'room',
    hilt: 'hilt',
    flutter: 'flutter',
    'react-native': 'react-native',
    reactnative: 'react-native',
    'kotlin-multiplatform': 'kmp',
    kmp: 'kmp',
};
export function getMobileFrameworkFromName(framework) {
    return FW_NAME_MAP[framework.toLowerCase()] ?? null;
}
//# sourceMappingURL=mobile-detector.js.map