import { getFileHeader } from './chunk-EYM3ANAG.js';
import { __name } from './chunk-6AXVLTU5.js';

// src/prepare/runtime/runtime/shared/storage.ts
function writeStorage(context) {
  return `${getFileHeader()}

import { createStorage } from "unstorage";
${context.runtime.storage.map((storage) => storage.import).filter(Boolean).join("\n")}

export const storage = createStorage();

${context.runtime.storage.map((storage) => {
    return `storage.mount("${storage.namespace}", ${storage.name});`;
  }).join("\n")}
`;
}
__name(writeStorage, "writeStorage");

export { writeStorage };
//# sourceMappingURL=chunk-RQILOZ7Z.js.map
//# sourceMappingURL=chunk-RQILOZ7Z.js.map