import { ProtocolMapping } from 'puppeteer';

import { BrowserInterface } from '../../../src/typings';

export class MockCDPSession implements BrowserInterface.CDPSession {
  async send<T extends keyof ProtocolMapping.Commands>(
    method: T,
    ...paramArgs: ProtocolMapping.Commands[T]['paramsType']
  ): Promise<ProtocolMapping.Commands[T]['returnType']> {
    return;
  }
}
