UNPKG

@muddykat-tech/buttercup-server-client

Version:

Basic client for Buttercup database server

10 lines (9 loc) 431 B
import { FileItem, PathIdentifier } from "./types.js"; export declare class ButtercupServerClient { uuid: string; url: string; constructor(path: PathIdentifier, token: string); getDirectoryContent(pathIdentifier?: PathIdentifier): Promise<Array<FileItem>>; getFileContents(pathIdentifier?: PathIdentifier): Promise<string>; putFileContents(fileIdentifier: string, encryptedData: string): Promise<string>; }