type CookieMap = Map; type DocumentLike = { cookie: string; }; type WindowRefLike = { document?: DocumentLike; location?: { protocol?: string; hostname?: string; }; }; type CookieSetOptions = { path?: string; domain?: string; sameSite?: string; secure?: boolean; maxAgeSeconds?: number | null; expires?: Date | null; }; type CookieSetAttempt = { candidate: string; domain: string | null; cookieStr: string; before: string; after: string; readBack: string | undefined; stuck: boolean; }; type CookieSetResult = { ok: boolean; domain: string | null; cookieStr: string | null; attempts: CookieSetAttempt[]; }; declare function parseCookieHeader(header: unknown): CookieMap; export { parseCookieHeader }; declare function buildSetCookieString(name: string, value: string, attrs: Record): string; export declare function createCookieJar({ windowRef }: { windowRef: WindowRefLike; }): { get: (name: string) => string | undefined; set: (name: string, value: string, opts?: CookieSetOptions) => CookieSetResult; del: (name: string, opts?: CookieSetOptions) => CookieSetResult; __internal: { parseCookieHeader: typeof parseCookieHeader; buildSetCookieString: typeof buildSetCookieString; }; };