import { SpawnSyncRepresented } from '../../types'; import Representative from '../representative'; declare class SpawnSyncRepresentative extends Representative { readonly exit: SpawnSyncRepresentative.Exit; constructor(represented: X); } declare namespace SpawnSyncRepresentative { interface Exit { (condition?: Exit.Condition): void; onerror(): void; onsuccess(): void; } namespace Exit { type Condition = (represented: Represented) => boolean; } } export = SpawnSyncRepresentative;