import { type UserWithSecrets } from '@localfirst/crdx'; import type { Connection, InviteeContext, MemberContext } from 'connection/index.js'; import type { DeviceWithSecrets } from 'device/index.js'; import type { LocalUserContext } from 'team/context.js'; import type { Team, TeamContext } from 'team/index.js'; export type SetupConfig = Array | TestUserSettings | string>; /** Usage: ```ts const {alice, bob} = setup(['alice', 'bob']) const {alice, bob, charlie} = setup(['alice', 'bob', {user: 'charlie', member: false}]) const {alice, bob, charlie, dwight} = setup(['alice', 'bob', 'charlie', {user: 'dwight', admin: false}]) alice.team.add('bob') ``` */ export declare const setup: (..._config: SetupConfig) => Record; export type TestUserSettings = { user: string; admin?: boolean; member?: boolean; }; export type UserStuff = { userName: string; userId: string; deviceId: string; user: UserWithSecrets; team: Team; device: DeviceWithSecrets; phone?: DeviceWithSecrets; phoneStuff?: UserStuff; localContext: LocalUserContext; graphContext: TeamContext; connectionContext: MemberContext | InviteeContext; connection: Record; getState: (peer: string) => any; }; //# sourceMappingURL=setup.d.ts.map