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