import { AxiosInstance } from 'axios'; import { BaseResponse } from '../types'; export type ResourceConfig = Record; /** * Platform resource. * * @param client Axios Instance * * @template T Request type (es. NewDevice) * @template K Response type contains uuid property (es. Device) */ declare abstract class Resource { protected client: AxiosInstance; constructor(client: AxiosInstance); abstract findAll(config?: ResourceConfig): Promise; abstract findById(uuid: string, config?: ResourceConfig): Promise; abstract create(data: T, config?: ResourceConfig): Promise; abstract updateById(uuid: string, data: T, config?: ResourceConfig): Promise; abstract deleteById(uuid: string, config?: ResourceConfig): Promise; } export default Resource; //# sourceMappingURL=resource.d.ts.map