import { PageModel, PageLink } from './PageModel'; export interface ResponseBase { timestamp: Date; } export interface Response extends ResponseBase { body: T; } export interface ResponseCollection extends ResponseBase { body: T[]; page: number; pages: PageLink[]; skip: number; take: number; total: number; } export interface ErrorResponse extends ResponseBase { error: T; message?: string; } export declare function createResponse(body: T): Response; export declare function createResponseCollection(body: T[], page: PageModel): ResponseCollection; export declare function createErrorResponse(error: T, message?: string): ErrorResponse; //# sourceMappingURL=Response.d.ts.map