import { D2ApiResponse } from "./common"; import { D2ApiGeneric } from "./d2Api"; export declare class DataStore { d2Api: D2ApiGeneric; namespace: string; private endpoint; constructor(d2Api: D2ApiGeneric, type: DataStoreType, namespace: string); getKeys(): D2ApiResponse; get(key: string): D2ApiResponse; getMetadata(key: string): D2ApiResponse; save(key: string, value: object): D2ApiResponse; delete(key: string): D2ApiResponse; } export declare type DataStoreType = "global" | "user"; export interface DataStoreKeyMetadata { created: Date; user: { id: string; }; lastUpdated: Date; lastUpdatedBy: { id: string; }; namespace: string; key: string; value: string; favorite: boolean; id: string; publicAccess: string; externalAccess: boolean; userAccesses: SharingSetting[]; userGroupAccesses: SharingSetting[]; } interface SharingSetting { access: string; displayName: string; id: string; } export {};