import type { CommonPubConfig, RegisteredTheme } from './types.js'; export interface ConfigWarning { field: string; message: string; } export interface ConfigResult { config: CommonPubConfig; warnings: ConfigWarning[]; } /** * Define and validate a CommonPub instance configuration. * Returns the validated config with defaults applied and any warnings. * * @throws {ZodError} if the config is invalid */ export declare function defineCommonPubConfig(input: { instance: { domain: string; name: string; description: string; contactEmail?: string; maxUploadSize?: number; contentTypes?: Array<'project' | 'article' | 'blog' | 'explainer'>; contestCreation?: 'open' | 'staff' | 'admin'; }; features?: Partial; auth?: Partial; federation?: Partial; /** Code-registered themes (the zod schema always accepted these; the input * type previously omitted them, so thin apps couldn't declare them * without a type error). */ themes?: RegisteredTheme[]; /** Brand default theme id — see CommonPubConfig.defaultTheme. */ defaultTheme?: string; }): ConfigResult; //# sourceMappingURL=config.d.ts.map