import { Contents } from '@jupyterlab/services'; import { ITranslator } from '@jupyterlab/translation'; import { JSONObject } from '@lumino/coreutils'; import { IDocumentManager } from './'; /** * A stripped-down interface for a file container. */ export interface IFileContainer extends JSONObject { /** * The list of item names in the current working directory. */ items: string[]; /** * The current working directory of the file container. */ path: string; } /** * Rename a file with a dialog. */ export declare function renameDialog(manager: IDocumentManager, oldPath: string, translator?: ITranslator): Promise; /** * Rename a file, asking for confirmation if it is overwriting another. */ export declare function renameFile(manager: IDocumentManager, oldPath: string, newPath: string): Promise; /** * Ask the user whether to overwrite a file. */ export declare function shouldOverwrite(path: string, translator?: ITranslator): Promise; /** * Test whether a name is a valid file name * * Disallows "/", "\", and ":" in file names, as well as names with zero length. */ export declare function isValidFileName(name: string): boolean;