import { Contents } from '@jupyterlab/services'; /** * The canonical path used by the root of the in-memory load-state map. * The tree itself does not surface a path for its root. */ export declare const ROOT_LOAD_KEY = ""; /** * Convert a {@link Contents.IModel} into the canonical path expected by * `@pierre/trees`. Directories carry a trailing slash so empty directories can * still be represented in the flat path list. */ export declare function toCanonicalPath(child: Contents.IModel): string; /** * Strip the trailing slash that `@pierre/trees` uses for canonical directory * paths so the value can be sent to the Jupyter contents API. */ export declare function toServerPath(canonicalPath: string): string; interface IListedDirectory { /** * Canonical paths for every immediate child of the requested directory. */ paths: string[]; /** * Subset of {@link IListedDirectory.paths} that are directories. */ subdirectories: string[]; } /** * Fetch the immediate children of a directory through the Jupyter contents API * and return them as canonical `@pierre/trees` paths. */ export declare function listDirectory(manager: Contents.IManager, serverPath: string): Promise; export {};