/// import { SolidDataset } from '@inrupt/solid-client'; import type { Logger } from '../logger'; export type DirInfo = { files: FileInfo[]; directories: FileInfo[]; aclfiles: FileInfo[]; }; interface FileLoadingFunction { (): Promise<{ buffer?: Buffer; blob?: Blob; contentType: string; }>; } export type FileInfo = { absolutePath: string; relativePath?: string; directory?: string; contentType?: string; buffer?: Buffer; lastModified?: Date; blob?: Blob; loadFile?: FileLoadingFunction; }; export type ResourceInfo = { url: string; relativePath?: string; isDir: boolean; modified?: Date | null; mtime?: number | null; size?: number | null; types?: string[]; metadata?: ResourceInfo; acl?: ResourceInfo; }; export declare function isRemote(resourcePath: string): boolean; export declare function isDirectory(resourcePath: string): boolean; export declare function isDirectoryContents(resourcePath: string): boolean; export declare function ensureDirectoryExistence(filePath: string): true | undefined; export declare function fixLocalPath(filePath: string): string; export declare function getPodRoot(url: string, fetch: Function): Promise; export declare function getWebIDIdentityProvider(webId: string): Promise; export declare function getInbox(webId: string, fetch: Function): Promise; export interface IReadOptions { fetch: typeof globalThis.fetch; verbose?: boolean; listDirectories?: boolean; all?: boolean; } export declare function readRemoteDirectoryRecursively(root_path: string, options: IReadOptions, local_path?: string, files?: FileInfo[], directories?: FileInfo[], aclfiles?: FileInfo[]): Promise; export declare function generateRecursiveListing(baseContainerURI: string, options: IReadOptions): AsyncGenerator; export declare function getAclAndMetadata(url: any, containerUrl: string, fetch: Function, headers?: any): Promise<{ acl: ResourceInfo | null; meta: ResourceInfo | null; }>; export declare function checkHeadersForAclAndMetadata(url: any, fetch: Function, headers?: any): Promise<{ acl: string | null; meta: string | null; }>; export declare function getResourceInfoFromDataset(dataset: SolidDataset, resourceUrl: string, baseUrl?: string): ResourceInfo; export declare function getResourceInfoFromHeaders(resourceUrl: string, containerUrl: string, fetch: any): Promise; export declare function getFileContentsAndInfo(url: string, options: { fetch: any; header: string[]; }): Promise<{ url: string; contentType: string | undefined; text: string | undefined; }>; export declare function checkRemoteFileExists(url: string, fetch: any): Promise; export declare function checkRemoteFileAccess(url: string, fetch: any): Promise; export declare function getRelativePath(path: string, basePath: string): string | undefined; export declare function writeErrorString(explanation: string, e: any, options?: { logger?: Logger; }): void; export declare function isRDFResource(fileInfo: FileInfo, fetch: any): Promise; export declare function discoverAccessMechanism(url: string, fetch: any): Promise<{ acp: boolean; acl: boolean; }>; export declare function resourceExists(url: string, fetch: any): Promise; export declare function compareLastModifiedTimes(sourceResourceTime: Date | undefined, targetResourceTime: Date | undefined): Promise<{ write: boolean; request: boolean; }>; export declare function getRemoteResourceLastModified(url: string, fetch: any): Promise; export declare function getLocalFileLastModified(path: string): Date; export {}; //# sourceMappingURL=util.d.ts.map