import type { MisinaPlugin } from "../types.mjs"; export interface CookieJar { getCookieString: (url: string) => string | Promise; setCookie: (setCookieHeader: string, url: string) => void | Promise; } interface StoredCookie { name: string; value: string; domain: string; path: string; expires?: number; secure?: boolean; httpOnly?: boolean; sameSite?: string; } /** * Zero-dep, in-memory cookie jar covering the 80% case (session cookies). * Honors Domain, Path, Expires/Max-Age, Secure. Does not implement public- * suffix-list checks or full RFC 6265 — that's a v2 concern. */ export declare class MemoryCookieJar implements CookieJar { #private; getCookieString(url: string): string; setCookie(setCookieHeader: string, url: string): void; /** Inspect or seed the jar. Mostly useful in tests. */ get cookies(): readonly StoredCookie[]; } /** * Plugin that adds a `Cookie` header on every request matching the URL and * reads `Set-Cookie` from responses to populate the jar. */ export declare function cookieJar(jar: CookieJar): MisinaPlugin; export {};