UNPKG

signalk-server

Version:

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

25 lines 1.05 kB
import { HistoryApi, HistoryProvider, PathSpec, TimeRangeParams, WithHistoryApi } from '@signalk/server-api/history'; import { IRouter } from 'express'; import { WithSecurityStrategy } from '../../security'; interface HistoryApplication extends WithSecurityStrategy, IRouter { } export declare class HistoryApiHttpRegistry { private app; private historyProviders; private defaultProviderId?; proxy: HistoryApi; constructor(app: HistoryApplication & WithHistoryApi); registerHistoryApiProvider(pluginId: string, provider: HistoryProvider): void; unregisterHistoryApiProvider(pluginId: string): void; start(): void; private defaultProvider; private useProvider; } export declare const parseResolution: (value: unknown) => number | undefined; export declare const splitPathExpression: (pathExpression: string) => PathSpec; export declare const parseTimeRangeParams: (query: Record<string, unknown>) => { timeRangeParams: TimeRangeParams; errors: string[]; }; export {}; //# sourceMappingURL=index.d.ts.map