import Account from './modules/account' ; import Blocks from './modules/blocks' ; import Cafes from './modules/cafes' ; import Config from './modules/config' ; import Comments from './modules/comments' ; import Contacts from './modules/contacts' ; import Events from './modules/events' ; import Feed from './modules/feed' ; import File from './modules/file' ; import Files from './modules/files' ; import Invites from './modules/invites' ; import IPFS from './modules/ipfs' ; import Likes from './modules/likes' ; import Logs from './modules/logs' ; import Messages from './modules/messages' ; import Notifications from './modules/notifications' ; import Profile from './modules/profile' ; import Schemas from './modules/schemas' ; import Observe from './modules/observe' ; import Threads from './modules/threads' ; import Tokens from './modules/tokens' ; import Utils from './modules/utils' ; import { TextileOptions } from './models' ; import { DEFAULT_API_OPTIONS as defaults } from './core/api' ; export * from './models' ; /**
 * Textile is the main client class
 */ export class Textile { param options static create ( options ? ) { return new this ( options ) ; } property account : Account ; property blocks : Blocks ; property cafes : Cafes ; property config : Config ; property comments : Comments ; property contacts : Contacts ; property events : Events ; property feed : Feed ; property file : File ; property files : Files ; property invites : Invites ; property ipfs : IPFS ; property likes : Likes ; property logs : Logs ; property messages : Messages ; property notifications : Notifications ; property profile : Profile ; property schemas : Schemas ; property observe : Observe ; property threads : Threads ; property tokens : Tokens ; property utils : Utils ; constructor ( options ? ) { const _options = defaults ; if ( options && options . port !== undefined ) { _options . port = options . port ; } if ( options && options . url !== undefined ) { _options . url = options . url ; } if ( options && options . version !== undefined ) { _options . version = options . version ; } this . account = new Account ( _options ) ; this . blocks = new Blocks ( _options ) ; this . cafes = new Cafes ( _options ) ; this . config = new Config ( _options ) ; this . comments = new Comments ( _options ) ; this . contacts = new Contacts ( _options ) ; this . events = new Events ( _options ) ; this . feed = new Feed ( _options ) ; this . file = new File ( _options ) ; this . files = new Files ( _options ) ; this . invites = new Invites ( _options ) ; this . ipfs = new IPFS ( _options ) ; this . likes = new Likes ( _options ) ; this . logs = new Logs ( _options ) ; this . messages = new Messages ( _options ) ; this . notifications = new Notifications ( _options ) ; this . profile = new Profile ( _options ) ; this . schemas = new Schemas ( _options ) ; this . observe = new Observe ( _options ) ; this . threads = new Threads ( _options ) ; this . tokens = new Tokens ( _options ) ; this . utils = new Utils ( _options ) ; } } export default new Textile ( ) ;