UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

41 lines 1.1 kB
import { IRouter } from 'express'; import { SignalKMessageHub, WithConfig } from '../app'; import { WithSecurityStrategy } from '../security'; import { SignalKApiId, WithFeatures } from '@signalk/server-api'; export interface ApiResponse { state: 'FAILED' | 'COMPLETED' | 'PENDING'; statusCode: number; message: string; requestId?: string; href?: string; token?: string; } export declare const Responses: { ok: { state: string; statusCode: number; message: string; }; invalid: { state: string; statusCode: number; message: string; }; unauthorised: { state: string; statusCode: number; message: string; }; notFound: { state: string; statusCode: number; message: string; }; notImplemented: { state: string; statusCode: number; message: string; }; }; export declare const startApis: (app: SignalKMessageHub & WithSecurityStrategy & IRouter & WithConfig & WithFeatures) => SignalKApiId[]; //# sourceMappingURL=index.d.ts.map