import { IndexDef, SerializedIndexDef } from '../types/IndexDef' import { Item } from '../types/Item' import { IdGeneratorFunction } from '../types/IdGeneratorFunction' import { IdType } from '../types/IdType' import { IStorageAdapter } from './IStorageAdapter' import { IList } from './IList' import { ZodType } from 'zod' export interface ICollectionConfig { root: string name: string list: IList adapter: IStorageAdapter ttl?: string | number /** crontab format */ rotate?: string audit?: boolean validation?: ZodType id?: string | Partial> idGen?: string | IdGeneratorFunction auto?: boolean indexList?: Array> } export interface ISerializedCollectionConfig { name: string id: string ttl?: number /** crontab format */ rotate?: string list: "single" | "List" | "separate" | "FileStorage" | 'chunked' audit?: boolean validation?: JSON auto?: boolean indexList: Array adapter: 'AdapterMemory' | 'AdapterFile' root: string }