import { Signal } from '@blocksuite/store'; export const getDataCenter = async () => { const dataCenter = await import('../src/index.js'); return await dataCenter.getDataCenter(false); }; export const waitOnce = (signal: Signal) => new Promise(resolve => signal.once(val => resolve(val)));