import { IdGeneratorFunction } from './IdGeneratorFunction' import { Item } from './Item' import { Paths } from './Paths' export interface IndexDef { key: string | Paths auto?: boolean unique?: boolean sparse?: boolean required?: boolean ignoreCase?: boolean gen?: IdGeneratorFunction process?: (value: any) => any } export interface SerializedIndexDef { key: string auto?: boolean unique?: boolean sparse?: boolean required?: boolean ignoreCase?: boolean gen?: string process?: string }