UNPKG

supapup

Version:

⚡ Lightning-fast MCP browser dev tool. Navigate → Get instant structured data. No screenshots needed! Puppeteer: 📸 → CSS selectors → JS eval. Supapup: semantic IDs ready to use. 10x faster, 90% fewer tokens.

34 lines 1.3 kB
import { Page, Cookie, CookieParam } from 'puppeteer'; interface StorageData { localStorage?: Record<string, string>; sessionStorage?: Record<string, string>; cookies?: Cookie[]; } export declare class StorageTools { private page; private cdpSession; initialize(page: Page): Promise<void>; getLocalStorage(): Promise<Record<string, string>>; setLocalStorage(key: string, value: string): Promise<void>; removeLocalStorage(key: string): Promise<void>; clearLocalStorage(): Promise<void>; getSessionStorage(): Promise<Record<string, string>>; setSessionStorage(key: string, value: string): Promise<void>; removeSessionStorage(key: string): Promise<void>; clearSessionStorage(): Promise<void>; getCookies(): Promise<Cookie[]>; setCookie(cookie: CookieParam): Promise<void>; deleteCookie(name: string, url?: string): Promise<void>; clearCookies(): Promise<void>; clearAllStorage(): Promise<void>; exportStorageState(): Promise<StorageData>; importStorageState(data: StorageData): Promise<void>; getStorageInfo(): Promise<{ usage: number; quota: number; }>; formatStorageData(data: StorageData): string; cleanup(): Promise<void>; } export {}; //# sourceMappingURL=storage-tools.d.ts.map