import { Plugin , RecordOptions , SaveOptions } from './Plugin' ; import { FileManager , Logger } from './utils' ; declare global { namespace Cypress { interface Chainable < Subject = any > { saveHar ( options ? ) : Chainable < Subject > ; recordHar ( options ? ) : Chainable < Subject > ; } } } const plugin = new Plugin ( Logger . Instance , FileManager . Instance ) ; export const install = ( on ) : void => { on ( 'task' , { saveHar : ( options ) : Promise < void > => plugin . saveHar ( options ) , recordHar : ( options ) : Promise < void > => plugin . recordHar ( options ) } ) ; } ; export const ensureBrowserFlags = ( browser , launchOptions ) : void => { launchOptions . args . push ( ... plugin . ensureBrowserFlags ( browser , launchOptions . args ) ) ; } ; export { SaveOptions , RecordOptions } from './Plugin' ;