UNPKG

ownfiles

Version:

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

15 lines 970 B
import FileClient from './index'; import { IndexEntry } from './deepRead'; export declare type IndexType = IndexEntry[]; export declare const createIndex: (this: FileClient, url: string, options?: Partial<{ items: IndexType; foundCallback: (item: any) => unknown; }> | undefined) => Promise<IndexType | undefined>; export declare const deleteIndex: (this: FileClient, url: string) => Promise<void | undefined>; export declare const readIndex: (this: FileClient, url: string) => Promise<IndexEntry[]>; export declare const deleteFromIndex: (this: FileClient, item: string) => Promise<void[]>; export declare const addToIndex: (this: FileClient, item: IndexEntry | string, { force, updateCallback, }?: { force?: boolean | undefined; updateCallback?: ((uri: string | undefined | null, success: boolean, errorBody?: string | undefined, response?: Error | Response | undefined) => void) | undefined; }) => Promise<void>; //# sourceMappingURL=indexing.d.ts.map