/** * Legacy API client - DEPRECATED * Use the new API structure in ./api/ instead * * This file is kept for backward compatibility */ export interface SessionCreateParams { sessionTtl?: string; sessionName?: string; sessionRecording?: string; proxyUrl?: string; proxyCountry?: string; proxyState?: string; proxyCity?: string; fingerprint?: string; metadata?: Record; userAgent?: string; platform?: string; screenWidth?: number; screenHeight?: number; timezone?: string; languages?: string[]; } export interface SessionInfo { sessionId: string; createdAt: string; status: string; name?: string; metadata?: Record; } export interface SessionCreateResponse { success: boolean; taskId: string; sessionId?: string; } export interface SessionListResponse { sessions: SessionInfo[]; } /** * Legacy API client wrapper * @deprecated Use ScrapelessAPI instead */ export declare class ScrapelessApiClient { private api; constructor(apiKey?: string, apiVersion?: string); createSession(params?: SessionCreateParams): Promise; listSessions(): Promise; stopSession(sessionId: string): Promise<{ success: boolean; message?: string; }>; stopAllSessions(): Promise<{ success: boolean; stopped: number; message?: string; }>; getLiveUrl(sessionId: string): Promise<{ url: string; }>; getCdpUrl(sessionId: string): string; getLatestSession(): Promise; getApiVersion(): string; supportsFeature(feature: 'proxy_state' | 'proxy_city' | 'metadata'): boolean; } /** * Get the global API client instance * @deprecated Use new ScrapelessAPI instead */ export declare function getApiClient(): ScrapelessApiClient; /** * Reset the global API client (for testing or config changes) * @deprecated Use new ScrapelessAPI instead */ export declare function resetApiClient(): void; //# sourceMappingURL=api-client.d.ts.map