import { AppError } from '@shadow-library/common'; import { type Schema } from 'mongoose'; export declare function handleIndexKeyError(throwError: AppError | Record): (error: Error, _result: unknown, next: (error?: Error) => void) => void; export declare function defaultOptionsPlugin(schema: Schema): void;