import { ITreeNode } from '@blueprintjs/core';
import * as React from 'react';
interface ITemplateSaveDirProps {
    upload: (dirid: React.ReactText) => Promise<void>;
}
export declare class TemplateSaveDir extends React.Component<ITemplateSaveDirProps, {
    nodes: ITreeNode[];
}> {
    constructor(props: any);
    componentWillMount(): Promise<void>;
    render(): JSX.Element;
    private handleNodeCollapse;
    private handleNodeClick;
}
/**后台的数据目录转为ui树 */
export declare function ParseDirNodes(dirs: any[], defaultId: string, isRoot?: boolean): ITreeNode<{}>[];
export {};
//# sourceMappingURL=TemplateSaveDir.d.ts.map