import { getFileStore, getNamedFileStore, resolveFileStore } from "./store.js";
export function getFile(fileId) {
    if (typeof fileId === "string") {
        const store = getFileStore();
        return store.get(fileId);
    }
    else {
        const store = resolveFileStore(fileId);
        return store.get(fileId.fileId);
    }
}
export function getNamedFile(type, typeId, fileId) {
    const store = getNamedFileStore(type, typeId);
    return store.get(fileId);
}
//# sourceMappingURL=get-file.js.map