UNPKG

ownfiles

Version:

A library to manage files in a Solid User's Pod

25 lines 782 B
import FileClient from './fileClient'; export interface ReadOptions { auth: any; verbose: boolean; headOnly: boolean; headers: Record<string, string>; } export interface FolderType { folders: string[]; files: (FileType | string)[]; } export interface FileType { name: string; type: string; } export interface SingleFileType { body: string; contentType: string; } export declare function ReadException(this: { response: Response; }, response: Response): void; export declare const read: (this: FileClient, resource: string, { auth, verbose, headOnly, headers }?: Partial<ReadOptions>) => Promise<any>; export declare const getFolderResult: (resource: string, store: any, verbose?: boolean) => FolderType; //# sourceMappingURL=read.d.ts.map