import { ObjectId } from 'mongodb'; import mongoose, { SchemaDefinition } from 'mongoose'; import { GlobalConfig, PageConfig as IPageConfig } from '../../state'; export interface Section { component: string; id: string; configuration: T; name?: string; sharedSection?: ObjectId | Section; } export type PageConfig = IPageConfig & mongoose.Document & { populateSharedSections: () => Promise; renderVariables: (globalConfig: GlobalConfig) => Promise; insertSectionOverrides: (agencyId: number) => Promise; }; export declare const SectionSchema: mongoose.Schema, {}, {}, {}, {}, { timestamps: true; }, { name?: string | null | undefined; agencyId?: number | null | undefined; id?: string | null | undefined; component?: string | null | undefined; configuration?: any; sharedSection?: mongoose.Types.ObjectId | null | undefined; appliedTo?: string | null | undefined; } & mongoose.DefaultTimestampProps, mongoose.Document, {}, mongoose.ResolveSchemaOptions<{ timestamps: true; }>> & mongoose.FlatRecord<{ name?: string | null | undefined; agencyId?: number | null | undefined; id?: string | null | undefined; component?: string | null | undefined; configuration?: any; sharedSection?: mongoose.Types.ObjectId | null | undefined; appliedTo?: string | null | undefined; } & mongoose.DefaultTimestampProps> & { _id: mongoose.Types.ObjectId; } & { __v: number; }>; export declare const pageConfigSchemaFields: SchemaDefinition; declare const PageConfigSchema: mongoose.Schema & IPageConfig & mongoose.Document, {}> & { populateSharedSections: () => Promise; renderVariables: (globalConfig: GlobalConfig) => Promise; insertSectionOverrides: (agencyId: number) => Promise; } & Required<{ _id: string | null; }> & { __v: number; }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PageConfig, mongoose.Document, {}, mongoose.ResolveSchemaOptions> & mongoose.FlatRecord & Required<{ _id: string | null; }> & { __v: number; }>; export default PageConfigSchema; //# sourceMappingURL=page-config-schema.d.ts.map