import { UserDocumentRecord } from '../workspace/types.js'; import { FileBrowserEntry } from './file-browser-types.js'; export declare function formatFileBytes(bytes: number | null | undefined): string; export declare function formatFileDate(value: string | Date | null | undefined): string; export declare function joinPrefix(prefix: string, segment: string): string; /** Join a folder prefix with a file name (no trailing slash). */ export declare function joinStoragePath(prefix: string, name: string): string; export declare function parentPrefix(prefix: string): string; export declare function prefixCrumbs(prefix: string): { label: string; prefix: string; }[]; export declare function storageBreadcrumbItems(prefix: string): { label: string; prefix: string; }[]; export declare function sortBrowserEntries(entries: readonly FileBrowserEntry[]): FileBrowserEntry[]; /** * Map Athena managed-storage documents into browser entries. * Keys under the current prefix that contain an extra `/` are folded into * synthetic folder rows so the list can navigate by common-prefix. */ export declare function documentsToFileBrowserEntries(documents: readonly UserDocumentRecord[], prefix?: string): FileBrowserEntry[]; /** Offline / first-paint demo tree used by example apps. */ export declare function createMockFileTree(prefix?: string): FileBrowserEntry[];