export type PreviewPortResolution = {
    ok: true;
    port: number | null;
} | {
    ok: false;
    status: number;
    error: string;
};
type VariantPreviewSessionGate = {
    isActive(): boolean;
    isVariantPortAllowed(port: number): boolean;
};
/**
 * Validate a requested preview port against the active MCP variant session.
 */
export declare const resolveVariantPreviewPort: (rawPort: unknown, sessionGate: VariantPreviewSessionGate) => PreviewPortResolution;
export {};
//# sourceMappingURL=variantPreviewPort.d.ts.map