UNPKG

cerevox

Version:

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

34 lines 965 B
import { Session } from './session'; import 'dotenv/config'; import type { Logger as PinoLogger } from 'pino'; export interface IBrowserConfig { type?: 'chromium' | 'chrome-stable'; args?: string[]; headless?: boolean; liveview?: boolean; adblock?: boolean; webgl?: boolean; } export interface ILaunchConfig { timeout?: number; keepAliveMS?: number; metadata?: Record<string, string>; } export declare class Cerevox { private apiKey; private debug; private logLevel; private logger; constructor(options?: { apiKey?: string; debug?: boolean; logLevel?: 'debug' | 'info' | 'warn' | 'error' | 'fatal'; }); get workspace(): string; getLogger(): PinoLogger; private createSandbox; private connectSandbox; launch(config?: ILaunchConfig): Promise<Session>; connect(sandboxId: string, keepAliveMS?: number): Promise<Session>; } //# sourceMappingURL=cerevox.d.ts.map