export type Settings = {
	check_posts: boolean;
	check_pages: boolean;
	check_media: boolean;
	editor_warning: boolean;
	email_enabled: boolean;
	email_to: string;
	skip_hosts: string[];
	quiet_hours: {
		enabled: boolean;
		from: string;
		to: string;
	};
	database: {
		pause_at_ms: number;
		batch_size: number;
	};
};

export type SettingsUpdate = Partial<
	Omit< Settings, 'quiet_hours' | 'database' >
> & {
	quiet_hours?: Partial< Settings[ 'quiet_hours' ] >;
	database?: Partial< Settings[ 'database' ] >;
};
