import { LabIcon } from '@jupyterlab/ui-components'; import type { FileTreeIconConfig } from '@pierre/trees'; /** * The glyph used as the xtralab file browser's sidebar tab icon. Defined as a * `LabIcon` (rather than the default `folderIcon` from * `@jupyterlab/ui-components`) so the xtralab browser is visually distinguishable * from JupyterLab's built-in file browser, which also lives in the left * sidebar. * * Source: `file-tree` from SVG Repo (https://www.svgrepo.com/svg/371275/file-tree). * The original `fill="#444"` is replaced with `fill="currentColor"` and the * root element is given the `jp-icon3` class so the icon picks up JupyterLab's * theme color and the sidebar's inverse-color painting automatically. */ export declare const xtralabFileBrowserIcon: LabIcon; /** * Icon configuration for the xtralab file browser. Keeps the default `complete` * built-in icon set (the colored language icons) and layers a Jupyter notebook * symbol on top so `.ipynb` files render with the JupyterLab notebook glyph. * * `set` must be set explicitly: when a config object includes any custom * overrides without `set`, `@pierre/trees` defaults `set` to `'none'`, which * disables the built-in icons entirely. */ export declare const FILE_BROWSER_ICONS: FileTreeIconConfig; /** * Return the icon the xtralab file tree would render for `filePath`. */ export declare function getTreeIcon(filePath: string): LabIcon; /** * Like {@link getTreeIcon}, but returns `null` for the generic file glyph. */ export declare function getSpecificTreeIcon(filePath: string): LabIcon | null;