import { type URL } from 'node:url';
import tough from 'tough-cookie';
/**
 * Cookie jar class.
 */
export declare class CookieJar {
    /**
     * Cookie storage.
     */
    storage: tough.CookieJar;
    /**
     * Load cookies from storage.
     */
    loadCookies(url: URL): Promise<string | null>;
    /**
     * Store cookies.
     */
    storeCookies(url: URL, headers: string[]): Promise<void>;
    _cookieURL(currentURL: URL): string;
}
