import { OnDragStart } from "gesto"; import File from "./File"; export interface FileInfo { id: string; scope: string[]; pathUrl: string; parentPathUrl: string; path: string[]; parentPath: string[]; parentFileInfo: FileInfo | null | undefined; parentValue: T | null | undefined; depth: number; index: number; value: T; } export declare type FoldIconProps = FileProps & { className: string; isFolded: boolean; isSelected: boolean; }; export declare type FileWrapperProps = FileProps & { className: string; gapWidth: number; isSelected: boolean; isShadow?: boolean; style: Record; }; export declare type FileProps = { name: string; scope: string[]; path: string[]; value: T; } & U; export interface FileManagerProps { index: number; info: T; scope: string[]; selected: string[]; folded: string[]; multiselect?: boolean; pathSeperator?: string; passWrapperProps?: (props: FileWrapperProps) => Record | null | undefined; FileComponent: ((props: FileProps) => any) | typeof File; FoldIcon?: (props: FoldIconProps) => any; preventSelect?: boolean; originalInfos: T[]; showFoldIcon?: boolean; isPadding?: boolean; gap?: number; gapOffset?: number; renderOnFolded?: boolean; nameProperty?: (keyof T & string) | ((value: T, index: any, scope: any[]) => any); idProperty?: (keyof T & string) | ((value: T, index: any, scope: any[]) => string | number); childrenProperty?: (keyof T & string) | ((value: T, scope: any[]) => any); pathProperty?: (keyof T & string) | ((id: string, scope: any[], value: T, index: any) => string[]); } export interface FolderProps { infos: T[]; originalInfos?: T[]; FileComponent: ((props: FileProps) => any) | typeof File; FoldIcon?: (props: FoldIconProps) => any; scope?: string[]; selected?: string[] | null; folded?: string[] | null; multiselect?: boolean; isMove?: boolean; showFoldIcon?: boolean; isPadding?: boolean; isMoveChildren?: boolean; display?: string; pathSeperator?: string; gap?: number; gapOffset?: number; fontColor?: string; backgroundColor?: string; selectedColor?: string; borderColor?: string; guidelineColor?: string; iconColor?: string; renderOnFolded?: boolean; preventSelect?: boolean; passWrapperProps?: (props: FileWrapperProps) => Record | null | undefined; urlProperty?: (id: string, scope: any[], value: T, index: any) => string; nameProperty?: (keyof T & string) | ((value: T, index: any, scope: any[]) => any); idProperty?: (keyof T & string) | ((value: T, index: any, scope: any[]) => string | number); childrenProperty?: (keyof T & string) | ((value: T, scope: any[]) => any); pathProperty?: (keyof T & string) | ((id: string, scope: any[], value: T, index: any) => string[]); dragCondtion?: (e: OnDragStart) => boolean; checkMove?: (e: MoveInfo) => boolean; onMove?: (e: OnMove) => any; onSelect?: (e: OnSelect) => any; onFold?: (e: OnFold) => any; isChild?: boolean; } export interface FolderState { shadows: Array>; } export interface MoveInfo { depth: number; parentInfo?: FileInfo | null | undefined; prevInfo?: FileInfo | null | undefined; nextInfo?: FileInfo | null | undefined; } export interface OnMove extends MoveInfo { flattenInfos: Array>; flattenPrevInfo: FileInfo | null | undefined; children: T[]; childrenInfos: Array>; selected: string[]; selectedInfos: Array>; nextFolded: string[]; } export interface OnSelect { path: string[]; pathUrl: string; isSelected: boolean; selected: string[]; selectedInfos: Array>; } export interface OnFold { path: string[]; pathUrl: string; isFolded: boolean; folded: string[]; }