/**
 * Detect preview deploy URLs from PR context.
 * Supports Vercel, Railway, Render, Fly.io, Netlify, and Cloudflare Pages.
 */
export type DeployProvider = "vercel" | "railway" | "render" | "fly" | "netlify" | "cloudflare" | "custom";
export interface DeployInfo {
    provider: DeployProvider;
    url: string;
    commit?: string;
    branch?: string;
    prNumber?: number;
}
/**
 * Extract preview deploy URL from environment variables.
 * CI platforms and deployment providers set specific env vars.
 */
export declare function detectDeployUrl(env?: Record<string, string | undefined>): DeployInfo | null;
/**
 * Parse a PR number from the deploy URL or environment.
 * Common patterns: pr-123, pr_123, pull-123, /pulls/123
 */
export declare function parsePrNumber(value: string): number | null;
/**
 * Build a PR-specific test URL from common preview URL patterns.
 */
export declare function buildPreviewUrl(baseUrl: string, _prNumber: number, provider?: DeployProvider): string | null;
//# sourceMappingURL=preview-detect.d.ts.map