import { APIProfileReport, StoreProfileReport } from "./interfaces"; import { Resource } from "../resource"; import { Response } from "src/server"; export declare class ProfileReport extends Resource { /** * The profile_report's associated profile. */ profileId: string; /** * The profile_report's associated report. */ reportId: string; /** * The profile_report's status of generation. */ status: "completed" | "processing"; constructor(profileId: string, report_id: string, status: "completed" | "processing"); /** * The name of the ProfileReport resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the ProfileReport resource. */ static get serviceName(): string; /** * Convert the report into a JSON serializable object for the API server. */ serializeAPI(): APIProfileReport; /** * Deserialize the data from the API server. * * @param data The report data from the API server. */ deserializeAPI(data: APIProfileReport): void; /** * Serialize the report into a format for storing in the Redux store. */ serializeRedux(): StoreProfileReport; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a ProfileReport from the API server data. * * @param data Data from the api server. * * @returns The ProfileReport object. */ static apiFactory(data: APIProfileReport): ProfileReport; /** * Create a ProfileReport from the Redux store data. * * @param data Data from the api server. * * @returns The ProfileReport object. */ static reduxFactory(data: StoreProfileReport): ProfileReport; }