import { type H3Event } from "h3"; export declare const SESSION_UNAVAILABLE_ERROR_CODE = "session_unavailable"; export declare const SESSION_UNAVAILABLE_MESSAGE = "Your session could not be verified. Retry shortly."; /** * Records that this request presented a session credential the server could * not check (the lookup threw). Such a request has no session, but it is not * signed out: answer a retryable 503, never a 401 that reads as "sign in * again". The first failure is kept; later ones are usually its echo. */ export declare function markSessionResolutionUnavailable(event: H3Event, source: string, error: unknown): void; export declare function isSessionResolutionUnavailable(event: H3Event): boolean; /** * Sends the lookup's real cause to the error tracker and the server log with * the request id the client also holds, once per request. Called where a null * session is handed to a consumer, so a lookup that a fallback path recovered * from is not reported. */ export declare function reportSessionResolutionUnavailable(event: H3Event): void; export declare function sessionResolutionUnavailableError(): import("h3").HTTPError & { errorCode: string; expected: boolean; };