import { TestSessionOptions } from '../core/ITestSession'; import { SessionExecutionResult } from '../results/SessionResult'; import { SessionEvent, SessionEventType } from '../events/SessionEventTypes'; export interface SessionExecutionOptions { timeout?: number; retries?: number; onProgress?: (event: SessionEvent) => void; } export interface IManagedSession { readonly label: string; readonly exists: boolean; readonly completed: boolean; readonly failed: boolean; readonly error: Error | undefined; readonly options: TestSessionOptions | undefined; readonly id: string | undefined; run(options?: SessionExecutionOptions): Promise; runWithTimeout(timeoutMs: number): Promise; reset(): boolean; delete(): boolean; onEvent(eventType: SessionEventType, callback: (event: SessionEvent) => void): () => void; onAnyEvent(callback: (event: SessionEvent) => void): () => void; waitForCompletion(timeoutMs?: number): Promise; getLastResult(): Promise; then(onFulfilled?: (result: SessionExecutionResult) => T): Promise; catch(onRejected?: (error: any) => T): Promise; } //# sourceMappingURL=IManagedSession.d.ts.map