import { LicenseGetData } from './licenses'; import { AbstractEntity } from './abstractEntity'; import { Pagination, PaginationData } from './pagination'; export declare enum GetResultFields { COLUMN_STATUS = "status", COLUMN_DATA = "data", COLUMN_PAGINATION = "pagination" } /** * @deprecated please use GetLicenseResultData for license */ export declare type LicenseGet = { license: LicenseGetData; }; export declare type GetData = { [GetResultFields.COLUMN_STATUS]: number; [GetResultFields.COLUMN_DATA]: Entity; [GetResultFields.COLUMN_PAGINATION]?: PaginationData; }; /** * This interface is use toJSON function in objects (data properties) you want to use */ interface AbstractEntityGet> extends AbstractEntity { toJSON: () => Entity['entityDataInput']; } /** * WARNING: use this class only when the Entity in data properties is an object not an array or other type * Use this class for get call when the response of API is a type of GetData */ export declare class GetResult> extends AbstractEntity> { #private; constructor(cls: new (data: Entity['entityDataInput']) => Entity, getResultDataInput: GetData); get status(): number; get data(): Entity; get pagination(): Pagination | undefined; toJSON(): GetData; } export {};