import { APIProfileSufferingTrait, StoreProfileSufferingTrait } from "./interfaces"; import { Resource } from "../resource"; import { Response } from "src/server"; export declare class ProfileSufferingTrait extends Resource { /** * The profile the profile-suffering-trait belongs to. */ profileId: string; /** * The trait the profile-suffering-trait belongs to. */ traitId: string; /** * Whether the profile is suffering from the trait. */ isSuffering: boolean; constructor(profileId: string, traitId: string, isSuffering: boolean); /** * The name of the profile-suffering-trait resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the profile-suffering-trait resource. */ static get serviceName(): string; /** * Convert the profile-trait into a JSON serializable object for the API server. */ serializeAPI(): APIProfileSufferingTrait; /** * Deserialize the data from the API server. * * @param data The profile-suffering-trait data from the API server. */ deserializeAPI(data: APIProfileSufferingTrait): void; /** * Serialize the profile-suffering-trait into a format for storing in the Redux store. */ serializeRedux(): StoreProfileSufferingTrait; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a profile-suffering-trait from the API server data. * * @param data Data from the api server. * * @returns The profile-trait object. */ static apiFactory(data: APIProfileSufferingTrait): ProfileSufferingTrait; /** * Create a profile-suffering-trait from the Redux store data. * * @param data Data from the api server. * * @returns The profile-suffering-trait object. */ static reduxFactory(data: StoreProfileSufferingTrait): ProfileSufferingTrait; }