import type { Instance , ConfigurationOptions } from './types' ; import { createContext } from './context' ; import { asTokens } from './util' ; import { process } from './process' ; export const createInstance = ( options ? ) : Instance => { const context = createContext ( options ) ; return { bw : ( ... tokens ) => process ( asTokens ( tokens ) , context ) , setup : context . c , theme : context . r , } ; } ;