UNPKG

valory-adaptor-fastify

Version:
13 lines (12 loc) 502 B
import { ApiResponse, ApiServer, HttpMethod, ValoryMetadata, ApiRequest } from "valory-runtime"; export declare class FastifyAdaptor implements ApiServer { readonly locallyRunnable: boolean; readonly allowDocSite: boolean; private instance; constructor(); register(path: string, method: HttpMethod, handler: (request: ApiRequest) => Promise<ApiResponse>): void; getExport(metadata: ValoryMetadata, options: any): { valory: ValoryMetadata; }; shutdown(): void; }