import Harlem from '@harlem/core' ; import type { HarlemPlugin , } from '@harlem/core' ; const app = { use : ( plugin , options ) => { if ( plugin && plugin . install ) { plugin . install ( app , options ) ; } } , } ; export { getStore , jsonClone , } from './store' ; export function bootstrap ( plugins ? ) { app . use ( Harlem , { plugins } ) ; } export function sleep ( timeout = 0 ) { return new Promise ( resolve => setTimeout ( resolve , timeout ) ) ; }