1 | import { DocumentRegistry } from '@jupyterlab/docregistry';
|
2 | import { Contents } from '@jupyterlab/services';
|
3 | import { ITranslator } from '@jupyterlab/translation';
|
4 | import { JSONObject } from '@lumino/coreutils';
|
5 | import { IDocumentManager } from './';
|
6 |
|
7 |
|
8 |
|
9 | export interface IFileContainer extends JSONObject {
|
10 | |
11 |
|
12 |
|
13 | items: string[];
|
14 | |
15 |
|
16 |
|
17 | path: string;
|
18 | }
|
19 |
|
20 |
|
21 |
|
22 | export declare function renameDialog(manager: IDocumentManager, context: DocumentRegistry.Context, translator?: ITranslator): Promise<void | null>;
|
23 |
|
24 |
|
25 |
|
26 | export declare function renameFile(manager: IDocumentManager, oldPath: string, newPath: string): Promise<Contents.IModel | null>;
|
27 |
|
28 |
|
29 |
|
30 | export declare function shouldOverwrite(path: string, translator?: ITranslator): Promise<boolean>;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare function isValidFileName(name: string): boolean;
|