///
import { Domain } from "../../../utils/types";
export declare type RenderedSNPs = {
snps: RenderedSNP[];
coords: Map;
};
export declare type LDData = {
snps: SNP[];
ld?: LD[];
};
export declare type LDTrackProps = {
data?: LDData;
width: number;
height: number;
id?: string;
transform?: string;
color?: string;
domain: Domain;
anchor?: string;
onVariantClick?: (snp: SNP) => void;
onVariantMouseOver?: (snp: SNP) => void;
onVariantMouseOut?: (snp: SNP) => void;
highlighted?: Set;
highlightColor?: string;
ldThreshold?: number;
svgRef?: React.RefObject;
onHeightChanged?: (height: number) => void;
className?: string;
};
export interface SNP {
domain: Domain;
id: string;
}
export declare type RenderedSNP = {
domain: Domain;
id: string;
color: string;
taller: boolean;
};
export declare type LD = {
rSquared: number;
coordinates: Domain;
};
export declare type Path = {
d: string;
stroke: string;
};
export declare type GraphQLLDTrackProps = {
assembly: string;
domain: Domain;
anchor?: string;
populations?: Population[];
endpoint: string;
width: number;
transform: string;
id: string;
onHeightChanged?: (value: number) => void;
svgRef?: React.RefObject;
};
export declare type GraphQLLdTrackState = {
snps?: SNP[];
ld?: LD[];
};
export declare type Population = {
population: string;
subpopulation?: string;
};