use serde::{Deserialize, Serialize};
use hwpforge_core::document::Document;
use hwpforge_core::section::Section;
use hwpforge_core::Draft;
use crate::HwpxStyleStore;
#[derive(Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct ExportedDocument {
pub document: Document<Draft>,
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(skip))]
pub styles: Option<HwpxStyleStore>,
}
#[derive(Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct ExportedSection {
pub section_index: usize,
pub section: Section,
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(skip))]
pub styles: Option<HwpxStyleStore>,
}