import type { DocumentMetadata } from '@moodlenet/arangodb/server' import type { RpcFile } from '@moodlenet/core' // export type FSStore = { // store: (logicalName: string, _rpcFile: RpcFile) => Promise // get: (logicalName: string) => Promise // del: (logicalName: string) => Promise // ls: (pOpts?: Partial | undefined) => Promise // getRpcFileByDirectAccessId: (directAccessId: string) => Promise // mountStaticHttpServer: (path: string) => Promise // } export type DbRecordData = FsItem & { logicalPath: string[] logicalPathLength: number } export type DbRecord = DbRecordData & DocumentMetadata export interface FsItem { logicalName: string rpcFile: RpcFile created: string directAccessId: string } export type LsOpts = { maxDepth: number; path: string }