import { Document } from "mongoose"; export type PopulatePath = { path: string; openApiComponent?: any; fields?: string[]; }; export declare function getOpenApiSpecForModel(model: any, { populatePaths, extraModelProperties, }?: { populatePaths?: PopulatePath[]; extraModelProperties?: any; }): { properties: any; required: string[]; }; export declare function unpopulate(doc: Document, path: string): Document;