declare module "chrome-cookies-secure" { type PuppeteerCookie = { name: string; value: string; expires: number; domain: string; path: string; HttpOnly?: boolean; Secure?: boolean; }; type Callback = (err: Error, cookies: T) => void; type CookieFormat = 'object' | 'curl' | 'header' | 'jar' | 'set-cookie' | 'puppeteer' /** * getCookies */ function getCookies(url: string, cb: Callback>): void; function getCookies( url: string, format: "object", cb: Callback>, profile?: string ): void; function getCookies( url: string, format: "curl" | "header", cb: Callback, profile?: string ): void; function getCookies( url: string, format: "jar", cb: Callback>, profile?: string ): void; function getCookies( url: string, format: "set-cookie", cb: Callback, profile?: string ): void; function getCookies( url: string, format: "puppeteer", cb: Callback, profile?: string ): void; /** * getCookiesPromised */ function getCookiesPromised( url: string ): Promise>; function getCookiesPromised( url: string, format: "object", profile?: string ): Promise>; function getCookiesPromised( url: string, format: "curl" | "header", profile?: string ): Promise; function getCookiesPromised( url: string, format: "jar", profile?: string, ): Promise>; function getCookiesPromised( url: string, format: "set-cookie", profile?: string ): Promise; function getCookiesPromised( url: string, format: "puppeteer", profile?: string ): Promise; }