import type { Context } from "hono"; import type { AuthResponsePayload } from "@rebasepro/types"; import type { HonoEnv } from "../api/types"; import type { CookieAuthConfig } from "./routes"; /** * Cookie auth helpers for httpOnly refresh tokens. */ export declare function getCookieSettings(config: CookieAuthConfig | undefined): { name: string; path: string; sameSite: "Strict" | "Lax" | "None"; domain: string | undefined; secure: boolean | undefined; }; /** * Set the refresh token as an httpOnly cookie on the response. */ export declare function setRefreshCookie(c: Context, refreshToken: string, config: CookieAuthConfig | undefined): void; /** * Clear the refresh token cookie. */ export declare function clearRefreshCookie(c: Context, config: CookieAuthConfig | undefined): void; /** * Read the refresh token from the request — cookie first, then body fallback. */ export declare function readRefreshToken(c: Context, body: { refreshToken?: string; }, config: CookieAuthConfig | undefined): string | undefined; /** * Redact the refresh token from the response body when cookie mode is active. */ export declare function redactRefreshToken(response: AuthResponsePayload, c: Context, refreshToken: string, config: CookieAuthConfig | undefined): AuthResponsePayload;