export declare function generateId(): string;
export declare function getMimeType(name: string): string;
export declare function getFileName(path: string): string;
export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
export declare function base64ToUint8Array(base64: string): Uint8Array;
export declare function toArrayBuffer(bytes: Uint8Array): ArrayBuffer;
export declare function normalizePath(path: string): string;
export declare function isPathWithin(child: string, parent: string): boolean;
export declare function sanitizeFileName(name: string): string;
/**
* Open a hidden picker. Resolves with the selected files,
* or null when the user cancels. Uses the input `cancel` event where available,
* with a window-focus fallback for browsers without it (pre-16.4 Safari) so the
* promise cannot hang forever on cancel. Must be called from a user gesture.
*/
export declare function pickFilesViaInput(options: {
accept?: string;
multiple?: boolean;
}): Promise;
export declare function isSafeEntryName(name: string): boolean;