UNPKG

@grasplabs/grasp

Version:

TypeScript SDK for browser automation and secure command execution in highly available and scalable cloud browser environments

33 lines 1.06 kB
import { ICDPConnection } from '../services/browser.service'; import { IBrowserConfig } from '../types'; import { TLaunchOptions } from './server'; import { GraspSession } from './session'; type TLaunchBrowserOptions = Partial<IBrowserConfig> & { type?: 'chrome-stable' | 'chromium'; adblock?: boolean; liveview?: boolean; }; export declare class Grasp { private key; constructor(options?: { apiKey: string; }); launch(options?: { browser?: Partial<TLaunchBrowserOptions>; keepAliveMS?: number; timeout?: number; debug?: boolean; logLevel?: 'debug' | 'info' | 'warn' | 'error'; }): Promise<GraspSession>; connect(sessionId: string): Promise<GraspSession>; /** * @deprecated Use new Grasp().launch() instead */ static launchBrowser(options: TLaunchOptions): Promise<ICDPConnection>; /** * @deprecated Use session.shutdown() instead */ static shutdown(connection?: ICDPConnection): void; } export default Grasp; //# sourceMappingURL=index.d.ts.map