import { BuildInput } from 'rapiq'; export type SingleResourceResponse = R; export type CollectionResourceResponse = { data: R[]; meta: { limit: number; offset: number; total: number; }; }; export interface DomainAPISlim = Record, ID extends keyof T = 'id'> { getMany(record?: BuildInput): any; getOne(id: T[ID], record?: BuildInput): any; delete(id: T[ID]): Promise>; create(data: Partial): Promise>; } export interface DomainAPI = Record, ID extends keyof T = 'id'> extends DomainAPISlim { update(id: T[ID], data: Partial): Promise>; } //# sourceMappingURL=type.d.ts.map