UNPKG

@empirica/core

Version:
39 lines (34 loc) 2.17 kB
export { k as Attributable, b as AttributeChange, e as AttributeInput, c as AttributeOptions, d as AttributeUpdate, C as Constructor, J as Json, i as JsonArray, j as JsonValue, S as ScopeConstructor, f as ScopeIdent, g as ScopeUpdate, A as SharedAttribute, a as SharedAttributes, G as SharedGlobals, h as SharedScope } from './scopes-eb5984a4.js'; import { L as ListenersCollector } from './context-302225e8.js'; export { b as AddLinkPayload, c as AddScopePayload, d as AddTransitionPayload, A as AttributeMsg, a as Attributes, E as EventContext, e as EvtCtxCallback, F as Finalizer, G as Globals, K as KV, f as ListenersCollectorProxy, h as Scope, j as ScopeSubscriptionInput, i as Scopes, S as StepPayload, T as TajribaAdminAccess, g as TajribaEvent } from './context-302225e8.js'; import { d as Context, e as ClassicKinds } from './proxy-9dce4f33.js'; export { A as AttrInput, B as Batch, C as Classic, f as ClassicConfig, a as ClassicListenersCollector, b as ClassicLoader, E as EventProxy, G as Game, P as Player, g as PlayerGame, h as PlayerRound, i as PlayerStage, R as Round, S as Stage, c as classicKinds, j as evt } from './proxy-9dce4f33.js'; import '@empirica/tajriba'; import 'rxjs'; import './tajriba_connection-49a30908.js'; interface TajServer { stop: () => void; port: number; url: string; username: string; password: string; srtoken: string; } interface StartTajribaOptions { configFile?: string; tajFile?: string; logLevel?: string; printLogs?: boolean; srtoken?: string; username?: string; password?: string; } declare function withTajriba(fn: (tajServer: TajServer) => void, options?: StartTajribaOptions): Promise<void>; declare enum ExportFormat { CSV = "csv", JSON = "json" } declare function runExport(url: string, token: string | null, srtoken: string, format: ExportFormat, output: string): Promise<void>; declare type LobbyConfig = {}; declare function Lobby(_?: LobbyConfig): (_: ListenersCollector<Context, ClassicKinds>) => void; export { ClassicKinds, Context, ExportFormat, ListenersCollector, Lobby, LobbyConfig, StartTajribaOptions, TajServer, runExport, withTajriba };