import * as toolbelt from 'ts-toolbelt' ; if ( typeof global === 'undefined' ) { Object . assign ( window , { global : window } ) ; } require ( '@testing-library/cypress/add-commands' ) ; require ( '@percy/cypress' ) ; declare global { namespace Cypress { interface Chainable < Subject > extends Chainables < typeof commands > { } } } export { } ; const commands = { } ; type Chainables < T extends object > = { [ K in keyof T ] : T [ K ] extends ( ... args : any [ ] ) => any ? ( ... args : toolbelt . List . Tail < Parameters < T [ K ] > > ) => Cypress . Chainable < ReturnType < T [ K ] > > : never ; } ;