import { CommonsRestServer } from '../servers/commons-rest.server'; import { TCommonsContentHandler } from '../types/tcommons-content-handler'; import { TCommonsNoContentHandler } from '../types/tcommons-no-content-handler'; export declare abstract class CommonsRestApi { private restServer; static error(message?: string, status?: number): never; static unauthorized(message?: string): never; static notFound(message?: string): never; static conflict(message?: string): never; static forbidden(message?: string): never; static badRequest(message?: string): never; static notImplemented(message?: string): never; static serviceUnavailable(message?: string): never; constructor(restServer: CommonsRestServer); protected getHandler(query: string, handler: TCommonsContentHandler): void; protected postHandler(query: string, handler: TCommonsContentHandler): void; protected patchHandler(query: string, handler: TCommonsContentHandler): void; protected putHandler(query: string, handler: TCommonsContentHandler): void; protected deleteHandler(query: string, handler: TCommonsContentHandler): void; protected headHandler(query: string, handler: TCommonsNoContentHandler): void; }