import { Resource } from "../resource"; import { StoreDNAKit, APIDNAKit, DnaKitStage } from "./interfaces"; import { Response } from "src/server"; export declare class DNAKit extends Resource { /** * The status of the item. "Shipped", "Received", etc. */ stage: DnaKitStage; /** * True if the file is newly analysed. */ isNew: boolean; /** * The id of the file associated with this kit. */ fileId: string; /** * The id of the package associated with this kit. */ package: string; constructor(stage: DnaKitStage, is_new: boolean, file_id: string, packageId: string); /** * The name of the DNAKit resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the DNAKit resource. */ static get serviceName(): string; /** * Convert the DNAKit into a JSON serializable object for the API server. */ serializeAPI(): APIDNAKit; /** * Deserialize the data from the API server. * * @param data The dnaKit data from the API server. */ deserializeAPI(data: APIDNAKit): void; /** * Serialize the dnaKit into a format for storing in the Redux store. */ serializeRedux(): StoreDNAKit; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a dnaKit from the API server data. * * @param data Data from the api server. * * @returns The DNAKit object. */ static apiFactory(data: APIDNAKit): DNAKit; /** * Create a dnaKit from the Redux store data. * * @param data Data from the api server. * * @returns The DNAKit object. */ static reduxFactory(data: StoreDNAKit): DNAKit; }