import { LimeFile } from './file'; /** * A repository for accessing {@link LimeFile} instances that belong to * limeobjects currently loaded in state. * * @beta * @group Files */ export interface LimeFileRepository { /** * Get a {@link LimeFile} by id. * * Only searches files attached to limeobjects that are already loaded * in state — it does not fetch from the server. If no loaded object * owns a file with this id, `undefined` is returned, which is * indistinguishable from the file not existing. * * @param id - the id of the file to get * @returns the file if a loaded limeobject owns it, otherwise `undefined` */ getFile(id: number): LimeFile | undefined; }