import { Resource } from '../helpers/resource'; import { DavPropertyValue } from './constants'; import { SpaceResource } from '../helpers'; import { DAV, DAVRequestOptions } from './client'; import { GetPathForFileIdFactory } from './getPathForFileId'; import { WebDavOptions } from './types'; export type ListFilesOptions = { depth?: number; davProperties?: DavPropertyValue[]; /** * Namespaced props to request for this call only, e.g. `myapp:my-prop`, on top * of anything registered globally via `registerExtraProp`. Names keep their own * prefix instead of being forced into `oc:`, the prefix is declared for you, and * the value lands on `Resource.extraProps` under the name you passed. Use this * for props only one caller cares about, so every other PROPFIND in the app * doesn't pay for them. */ extraProps?: string[]; isTrash?: boolean; } & DAVRequestOptions; export declare const ListFilesFactory: (dav: DAV, pathForFileIdFactory: ReturnType, options: WebDavOptions) => { listFiles(space: SpaceResource, { path, fileId }?: { path?: string; fileId?: string; }, { depth, davProperties, extraProps, isTrash, ...opts }?: ListFilesOptions): Promise; }; export interface ListFilesResult { resource: Resource; children?: Resource[]; }