import type { AuthCookiePayload } from "./crypto.js"; export declare const SESSION_COOKIE_NAME = "__Host-vf_session"; interface CreateAuthCookieOptions { readonly secret: string; readonly payload: AuthCookiePayload; readonly maxAgeSeconds: number; readonly now: number; readonly cookieName?: string; readonly requestUrl?: string; readonly randomBytes?: (length: number) => Uint8Array; } interface CreateTransactionCookieOptions extends CreateAuthCookieOptions { readonly state: string; } interface ReadSessionCookieOptions { readonly secret: string; readonly cookieHeader: string | null | undefined; readonly now: number; readonly maxLifetimeSeconds: number; readonly cookieName?: string; } interface ReadTransactionCookieOptions extends ReadSessionCookieOptions { readonly state: string; } export declare function createSessionCookie(options: CreateAuthCookieOptions): Promise; export declare function createTransactionCookie(options: CreateTransactionCookieOptions): Promise; export declare function readSessionCookie(options: ReadSessionCookieOptions): Promise; export declare function readTransactionCookie(options: ReadTransactionCookieOptions): Promise; export declare function clearSessionCookie(cookieName?: string): string; export declare function clearTransactionCookie(state: string): string; export declare function getTransactionCookieName(state: string): string; /** Clear older transaction cookies until the next request fits the cookie-header budget. */ export declare function clearExcessTransactionCookies(cookieHeader: string | null | undefined, newTransactionCookie: string): string[]; export {}; //# sourceMappingURL=cookies.d.ts.map