@nteract/fs-kernels
Version:
A manager for the filesystem aspects of Juyter kernels
35 lines (34 loc) • 1.05 kB
TypeScript
interface JupyterPaths {
config: string[];
runtime: string;
data: string[];
}
declare function guessSysPrefix(): string | null | undefined;
declare function configDirs(opts?: {
askJupyter?: () => Promise<JupyterPaths>;
withSysPrefix?: boolean;
}): Promise<string[]>;
/**
* dataDirs returns all the expected static directories for this OS.
* The user of this function should make sure to make sure the directories
* exist.
*
* When withSysPrefix is set, this returns a promise of directories
*
* @param withSysPrefix include the sys.prefix paths
* @return All the Jupyter Data Dirs
*/
declare function dataDirs(opts?: {
askJupyter?: () => Promise<JupyterPaths>;
withSysPrefix?: boolean;
}): Promise<string[]>;
declare function runtimeDir(opts?: {
askJupyter?: () => Promise<JupyterPaths>;
}): Promise<string>;
declare const _default: {
dataDirs: typeof dataDirs;
runtimeDir: typeof runtimeDir;
configDirs: typeof configDirs;
guessSysPrefix: typeof guessSysPrefix;
};
export default _default;