import type { ParsedDomain } from "../server/utils/domain-parser.js"; import type { TokenScope } from "./token-manager.js"; import type { ProxyContext } from "./handler.js"; export type ProxyErrorSlug = "authentication-failed" | "project-not-found" | "release-not-found"; export interface ProxyErrorContextBase { scope: TokenScope; host: string; requestAuthority?: string; parsedDomain: ParsedDomain; } export interface ProxyErrorContextOptions { status: number; message: string; token?: string; redirectUrl?: string; slug?: ProxyErrorSlug; } export declare function createProxyErrorContext(base: ProxyErrorContextBase, options: ProxyErrorContextOptions): ProxyContext; export declare function createProjectNotFoundProxyContext(base: ProxyErrorContextBase, message: "Preview project not found" | "Project not found", token?: string): ProxyContext; export declare function createReleaseNotFoundProxyContext(base: ProxyErrorContextBase, token?: string): ProxyContext; //# sourceMappingURL=proxy-error-context.d.ts.map