import { WebSocketSubject , WebSocketSubjectConfig } from "rxjs/webSocket" ; /**
 * Options that control the streamRequest command
 */ export interface StreamRequestOptions < T = any > { default streamTimeout : number ; default retryDelay : number ; default retryAttempts : number ; default startUpMessage : any ; /**
     * Check stream message in order to tell the command to close the stream and return the results
     * By default it will close after first
     *
     */ takeWhileFn ( message ) : boolean ; /**
     * Check all messages in order to tell the command to if it shoulr return the results or retry
     *
     */ retryUntilFn ( result ) : boolean ; } declare global { namespace Cypress { interface Chainable < Subject = any > { memberof example stream : < T = any > ( urlConfigOrSource : string | WebSocketSubjectConfig < T > ) => Chainable < WebSocketSubject < T > > ; memberof example streamRequest : < T = any > ( urlConfigOrSource : string | WebSocketSubjectConfig < T > , streamOptions : Partial < StreamRequestOptions < T > > ) => Chainable < T [ ] | void > ; } } }