/* eslint-disable-next-line */
export interface FileExplorerProps {
    name: string,
    registry: any,
    filesProvider: any,
    menuItems?: string[],
    plugin: any
}

export interface File {
    path: string,
    name: string,
    isDirectory: boolean,
    child?: File[]
}

export interface FileExplorerMenuProps {
    title: string,
    menuItems: string[],
    fileManager: any,
    addFile: (folder: string, fileName: string) => void,
    createNewFile: (folder?: string) => void,
    createNewFolder: (parentFolder?: string) => void,
    files: any,
    accessToken: string
}

export interface FileExplorerContextMenuProps {
    actions: { name: string, type: string[] }[],
    createNewFile: (folder?: string) => void,
    createNewFolder: (parentFolder?: string) => void,
    deletePath: (path: string) => void,
    renamePath: (path: string, type: string) => void,
    hideContextMenu: () => void,
    pageX: number,
    pageY: number,
    path: string,
    type: string
}
