@scayle/storefront-nuxt
Version:
Nuxt integration for the SCAYLE Commerce Engine and Storefront API
20 lines (19 loc) • 772 B
TypeScript
import type { Storage } from 'unstorage';
/**
* Returns a list of available mount points for the provided storage instance.
* The mount points are normalized by removing the tailing `:`.
* @param storage - The storage instance.
* @returns List of available mount points.
*/
export declare const getAvailableMounts: (storage: Storage) => string[];
/**
* Mounts a {@link Storage | storage}.
*
* It checks if a mount with the given base path already exists and
* mounts a new storage instance if not. It prioritizes a provided configuration,
* falling back to the default memory driver.
*
* @param storage - The storage instance to mount to.
* @param mount - Mount name.
*/
export declare const mountStorage: (storage: Storage, mount: string) => Promise<void>;