UNPKG

@signalk/resources-provider

Version:

Resources provider plugin for Signal K server.

27 lines 936 B
import { IResourceStore, StoreRequestParams } from '../types'; import { Resource } from '@signalk/server-api'; export declare const getUuid: (skIdentifier: string) => string; export declare class FileStore implements IResourceStore { private debug; savePath: string; resources: any; pkg: { id: string; }; constructor(pluginId: string, debug: (s: any) => void); init(config: any): Promise<{ error: boolean; message: string; }>; createSavePaths(resTypes: any): Promise<{ error: boolean; message: string; }>; getResource(type: string, itemUuid: string, property?: string): Promise<Resource<object>>; getResources(type: string, params: any): Promise<{ [key: string]: Resource<any>; }>; setResource(r: StoreRequestParams): Promise<void>; checkPath(path?: string): Promise<boolean | Error>; } //# sourceMappingURL=filestorage.d.ts.map