/** * Finding one object by path through Supabase Storage `list()`. * * - `list(folder)` returns the entries of ONE folder, named relative to it. * - `search` is a case-insensitive PREFIX match on those names, so `a.jpg` * also returns `a.jpg.bak` and `A.JPG`. * - Sub-folders come back as entries with `id: null`. * - `list()` does not clean its path, while upload does (storage-js * `_removeEmptyFolders`), so the lookup cleans the path the same way first. * * Shared by SupabaseStorageCore and SupabaseStorageService so the two cannot drift. */ import type { SupabaseClient } from '@supabase/supabase-js'; export interface StorageListEntry { name: string; id: string | null; metadata?: Record | null; } /** Same cleaning as storage-js applies to an upload path. */ export declare function cleanStoragePath(path: string): string; /** * Return the list entry of the file at `path`, or null when there is no such * file (including when `path` names a folder). Throws the list error, if any. */ export declare function findStorageEntry(client: SupabaseClient, bucketName: string, path: string): Promise; //# sourceMappingURL=storage-path.d.ts.map