import type { FileRoot, FileEntry, FilePreview } from "@polpo-ai/sdk"; export interface UseFilesReturn { roots: FileRoot[]; entries: FileEntry[]; currentPath: string | null; isLoading: boolean; error: Error | null; listFiles: (path?: string) => Promise; isListing: boolean; previewFile: (path: string, maxLines?: number) => Promise; isPreviewing: boolean; readFile: (path: string, download?: boolean) => Promise; uploadFile: (destPath: string, file: File | Blob, filename: string) => Promise<{ uploaded: { name: string; size: number; }[]; count: number; }>; isUploading: boolean; createDirectory: (path: string) => Promise<{ path: string; }>; isCreatingDir: boolean; renameFile: (path: string, newName: string) => Promise<{ oldPath: string; newName: string; }>; isRenaming: boolean; deleteFile: (path: string) => Promise; isDeleting: boolean; searchFiles: (query?: string, root?: string, limit?: number) => Promise<{ files: { name: string; path: string; }[]; total: number; }>; isSearching: boolean; refetchRoots: () => Promise; } export declare function useFiles(path?: string): UseFilesReturn; //# sourceMappingURL=use-files.d.ts.map