local Q=require(script.Parent.t)local n=require(script.Parent.Promise)local u=require(script.Collection)local y=require(script.Error)local V={t=Q,Promise=n;Error=y;_collections={}}function V.createCollection(Q,n)if V._collections[Q]then error(("\067\111\108\108\101\099\116\105\111\110 \037\113 \097\108\114\101\097\100\121 \101\120\105\115\116\115"):format(Q))end V._collections[Q]=u.new(Q,n)return V._collections[Q]end function V.getCollection(Q)return V._collections[Q]or error(("\067\111\108\108\101\099\116\105\111\110 \037\113 \104\097\115\110\'\116 \098\101\101\110 \099\114\101\097\116\101\100 \121\101\116\033"):format(Q))end return V
local t = require(script.Parent.t)
local Promise = require(script.Parent.Promise)
local Collection = require(script.Collection)
local Error = require(script.Error)

local Quicksave = {
	t = t;
	Promise = Promise;
	Error = Error;

	_collections = {};
}

function Quicksave.createCollection(name, options)
	if Quicksave._collections[name] then
		error(("Collection %q already exists"):format(name))
	end

	Quicksave._collections[name] = Collection.new(name, options)

	return Quicksave._collections[name]
end

function Quicksave.getCollection(name)
	return Quicksave._collections[name] or error(("Collection %q hasn't been created yet!"):format(name))
end

return Quicksave