async function supportsModuleWorker() {
    let supports = false;
    const tester = {
        get type() {
            supports = true;
            return 'module';
        },
    };
    try {
        new Worker('blob://', tester);
    }
    catch {
        // ....
    }
    return supports;
}
function supportFileAccess() {
    return 'showOpenFilePicker' in window;
}
export default async function supportedPlatform() {
    const hasWorkerModule = await supportsModuleWorker();
    if (!hasWorkerModule) {
        return false;
    }
    if (!supportFileAccess()) {
        return false;
    }
    return true;
}
//# sourceMappingURL=SupportedPlatform.js.map