import { APIProfileTrait, StoreProfileTrait } from "./interfaces"; import { Resource } from "../resource"; import { Response } from "src/server"; export declare class ProfileTrait extends Resource { /** * The profile the profile-trait belongs to. */ profileId: string; /** * The trait the profile-trait belongs to. */ traitId: string; /** * The number of Snps that were used to analyse this trait. */ numberOfSnp: number; /** * The profile-trait's score. */ score: number; constructor(profileId: string, traitId: string, numberOfSnp: number, score: number); /** * The name of the profile-trait resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the profile-trait resource. */ static get serviceName(): string; /** * Convert the profile-trait into a JSON serializable object for the API server. */ serializeAPI(): APIProfileTrait; /** * Deserialize the data from the API server. * * @param data The profile-trait data from the API server. */ deserializeAPI(data: APIProfileTrait): void; /** * Serialize the profile-trait into a format for storing in the Redux store. */ serializeRedux(): StoreProfileTrait; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a profile-trait from the API server data. * * @param data Data from the api server. * * @returns The profile-trait object. */ static apiFactory(data: APIProfileTrait): ProfileTrait; /** * Create a profile-trait from the Redux store data. * * @param data Data from the api server. * * @returns The profile-trait object. */ static reduxFactory(data: StoreProfileTrait): ProfileTrait; }