import type { Response } from 'node-fetch';
import type { FetchCookieOptions } from '../types/cookie';
import type { StringKV } from '../types/helper';
export default class FetchWithCookie {
    private headers;
    private cookieMap?;
    private lastRes?;
    lastRedirectUrl?: string;
    redirectUrl?: string;
    constructor(headers: StringKV);
    get(url: string, options?: {}): Promise<Response>;
    post(url: string, options: FetchCookieOptions): Promise<Response>;
    follow(options?: FetchCookieOptions): Promise<Response>;
    private fetch;
    getCookieObj(): StringKV;
    private updateMap;
}
