export declare interface MockConfig { verbose: boolean locale: string seed?: number autoInstallLocales?: boolean } // Locale types export declare interface LocaleDefinition { title: string person: PersonLocale address: AddressLocale company: CompanyLocale internet: InternetLocale phone: PhoneLocale food?: FoodLocale animal?: AnimalLocale sport?: SportLocale music?: MusicLocale commerce?: CommerceLocale book?: BookLocale vehicle?: VehicleLocale word?: WordLocale hacker?: HackerLocale system?: SystemLocale science?: ScienceLocale color?: ColorLocale } export declare interface PersonLocale { firstNameMale: string[] firstNameFemale: string[] firstNameNeutral?: string[] lastName: string[] prefix: string[] suffix: string[] gender: string[] jobTitle: string[] } export declare interface PersonNameOptions { gender?: 'male' | 'female' | 'neutral' } export declare interface PersonFullNameOptions extends PersonNameOptions { prefix?: boolean suffix?: boolean } export declare interface AddressLocale { street: string[] city: string[] state: string[] stateAbbr?: string[] country: string[] countryCode?: string[] zipCode: string[] buildingNumber?: string[] direction?: string[] streetSuffix?: string[] } export declare interface CompanyLocale { name?: string[] suffix?: string[] industry?: string[] buzzwords?: string[] buzzword?: string[] adjective?: string[] descriptor?: string[] noun?: string[] } export declare interface InternetLocale { domainSuffix?: string[] domainName?: string[] freeEmail?: string[] exampleEmail?: string[] } export declare interface PhoneLocale { formats?: string[] format?: string[] number?: string[] } export declare interface FoodLocale { dish?: string[] ingredient?: string[] cuisine?: string[] dessert?: string[] fruit?: string[] vegetable?: string[] meat?: string[] spice?: string[] } export declare interface AnimalLocale { dog?: string[] cat?: string[] bird?: string[] fish?: string[] horse?: string[] rabbit?: string[] insect?: string[] type?: string[] } export declare interface SportLocale { sport?: string[] team?: string[] athlete?: string[] } export declare interface MusicLocale { genre?: string[] artist?: string[] song?: string[] instrument?: string[] } export declare interface CommerceLocale { product?: string[] productName?: string[] productAdjective?: string[] adjective?: string[] productMaterial?: string[] material?: string[] department?: string[] color?: string[] } export declare interface BookLocale { title?: string[] author?: string[] publisher?: string[] genre?: string[] series?: string[] review?: string[] } export declare interface VehicleLocale { manufacturer?: string[] model?: string[] type?: string[] fuel?: string[] bicycle?: string[] } export declare interface WordLocale { adjective?: string[] adverb?: string[] conjunction?: string[] interjection?: string[] noun?: string[] preposition?: string[] verb?: string[] } export declare interface HackerLocale { abbreviation?: string[] adjective?: string[] noun?: string[] verb?: string[] ingverb?: string[] phrase?: string[] } export declare interface SystemLocale { fileName?: string[] fileType?: string[] } export declare interface ScienceLocale { chemicalElement?: string[] unit?: string[] constant?: string[] field?: string[] } export declare interface ColorLocale { human?: string[] name?: string[] } // Module option types export declare interface NumberOptions { min?: number max?: number precision?: number } export declare interface DateOptions { from?: Date to?: Date } export declare interface StringOptions { length?: number casing?: 'upper' | 'lower' | 'mixed' } export declare interface PasswordOptions { length?: number memorable?: boolean prefix?: string pattern?: RegExp } export declare interface ColorOptions { format?: 'hex' | 'rgb' | 'hsl' } export declare interface FinanceOptions { min?: number max?: number dec?: number symbol?: string } /** * Weighted selection options for more realistic data generation */ export declare interface WeightedItem { item: T weight: number } export declare interface WeightedSelectionOptions { items: WeightedItem[] } /** * Conditional generation constraints */ export declare interface ConditionalConstraints { gender?: 'male' | 'female' | 'neutral' country?: string | string[] region?: string | string[] locale?: string ageRange?: { min: number, max: number } [key: string]: any } /** * Data validation rules */ export declare interface ValidationRule { validator: (value: T) => boolean errorMessage?: string } export declare interface ValidationOptions { rules: ValidationRule[] strict?: boolean } /** * Realistic data relationship configuration */ export declare interface DataRelationship { field: string dependsOn: string mapping: Record } export declare interface RealisticDataOptions { relationships?: DataRelationship[] constraints?: ConditionalConstraints } /** * Custom data provider interface */ export declare interface DataProvider { name: string generate: (options?: any) => T validate?: (value: T) => boolean getWeight?: (options?: any) => number } /** * Plugin system for custom data providers */ export declare interface DataProviderPlugin extends DataProvider { category: string version: string dependencies?: string[] init?: (faker: any) => void } /** * Extended options for person generation with constraints */ export declare interface PersonAdvancedOptions extends PersonFullNameOptions { constraints?: ConditionalConstraints relationships?: DataRelationship[] validation?: ValidationOptions weighted?: WeightedSelectionOptions } /** * Extended options for address generation with constraints */ export declare interface AddressAdvancedOptions { country?: string | string[] region?: string | string[] constraints?: ConditionalConstraints relationships?: DataRelationship[] validation?: ValidationOptions weighted?: WeightedSelectionOptions } export type MockOptions = Partial; // Deep partial type utility for locale variants export type DeepPartial = T extends any[] ? T : { [P in keyof T]?: T[P] extends any[] ? T[P] : T[P] extends object ? DeepPartial : T[P] }