/** How one observation stream behaves: what it delivers, how long it stays open and the error it ends with, if any. */ export interface StreamScript { /** What the stream delivers before it ends. */ deliver?: T[]; /** How long, in milliseconds, the stream stays open after delivering before it ends. */ openForMs?: number; /** Whether the stream stays open until the client aborts it. */ untilAborted?: boolean; /** How long, in milliseconds, an aborted stream takes to end, as a slow transport would. */ endsLateByMs?: number; /** The error the stream ends with. */ error?: unknown; } /** Records the observation streams a reactor or reducer opens and plays them by their scripts. */ export declare class a_scripted_stream { readonly openedAt: number[]; readonly scripts: StreamScript[]; open: number; /** The observe method of the fake kernel connection. */ readonly observe: (_messages: unknown, options: { signal: AbortSignal; }) => AsyncGenerator; /** Gets the wait before each stream after the first was opened. */ get waits(): number[]; private play; } //# sourceMappingURL=a_scripted_stream.d.ts.map