export interface RequestContext { token: string; slug: string; branch: string | null; mode: "preview" | "production"; } export interface CreateRequestContextOptions { /** Whether the request has already passed the proxy trust check. */ proxyTrusted?: boolean; /** * Whether a missing request credential may use the standalone host API * token. Shared proxy requests must set this to false so attacker-selected * project identity is never combined with a host credential. */ allowHostTokenFallback?: boolean; } export declare function createRequestContext(req: Request, options?: CreateRequestContextOptions): RequestContext; export declare function getCacheStrategy(ctx: RequestContext, isLocalProject?: boolean): "none" | "invalidate" | "immutable"; export declare function shouldEnableCache(ctx: RequestContext, isLocalProject?: boolean): boolean; export declare function shouldUseNoCacheHeaders(ctx?: RequestContext, isLocalProject?: boolean): boolean; //# sourceMappingURL=request-context.d.ts.map