/// type WaitUntilLog = Pick type ErrorMsgCallback = ( result: Subject, options: WaitUntilOptions ) => string interface WaitUntilOptions { timeout?: number interval?: number errorMsg?: string | ErrorMsgCallback description?: string customMessage?: string verbose?: boolean customCheckMessage?: string logger?: (logOptions: WaitUntilLog) => any log?: boolean } declare namespace Cypress { interface Chainable { waitUntil( checkFunction: ( subject: Subject | undefined ) => ReturnType | Chainable | Promise, options?: WaitUntilOptions ): Chainable } }