import { StoreProfileCount, APIProfileCount } from "./interfaces"; import { Response } from "../server"; import { UserAddon } from "../interfaces"; export declare class ProfileCount extends UserAddon { /** * The number of credits the user has. */ count: number; constructor(userId: string, count: number); /** * The name of the ProfileCount resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the ProfileCount resource. */ static get serviceName(): string; /** * Convert the ProfileCount into a JSON serializable object for the API server. */ serializeAPI(): APIProfileCount; /** * Deserialize the data from the API server. * * @param data The ProfileCount data from the API server. */ deserializeAPI(data: APIProfileCount): void; /** * Serialize the ProfileCount into a format for storing in the Redux store. */ serializeRedux(): StoreProfileCount; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a ProfileCount from the API server data. * * @param data Data from the api server. * * @returns The ProfileCount object. */ static apiFactory(data: APIProfileCount): ProfileCount; /** * Create a ProfileCount from the Redux store data. * * @param data Data from the api server. * * @returns The ProfileCount object. */ static reduxFactory(data: StoreProfileCount): ProfileCount; }