import { SectionHeaderFooterKind, SectionHeaderFooterVariant } from '@superdoc/document-api'; import { Editor } from '../../core/Editor.js'; export type HeaderFooterJsonDoc = { type: 'doc'; content: Array<{ type: 'paragraph'; content: unknown[]; }>; }; interface HeaderFooterVariantIds { default?: string | null; first?: string | null; even?: string | null; odd?: string | null; ids?: string[]; titlePg?: boolean; } export interface ConverterWithHeaderFooterParts { convertedXml?: Record; headers?: Record; footers?: Record; headerIds?: HeaderFooterVariantIds; footerIds?: HeaderFooterVariantIds; headerFooterModified?: boolean; documentModified?: boolean; } export interface CreateHeaderFooterPartInput { kind: SectionHeaderFooterKind; variant: SectionHeaderFooterVariant; sourceRefId?: string; } export interface CreateHeaderFooterPartResult { refId: string; relationshipTarget: string; } export interface HeaderFooterRelationshipLookupInput { kind: SectionHeaderFooterKind; refId: string; } export declare function hasHeaderFooterRelationship(converter: ConverterWithHeaderFooterParts, input: HeaderFooterRelationshipLookupInput): boolean; /** * Create the canonical empty PM JSON document for a header/footer story. * * Keep this shape centralized so all header/footer bootstrap paths * materialize the same minimal document structure. */ export declare function createEmptyHeaderFooterJsonPart(): HeaderFooterJsonDoc; export declare function createHeaderFooterPart(editor: Editor, input: CreateHeaderFooterPartInput): CreateHeaderFooterPartResult; export {}; //# sourceMappingURL=header-footer-parts.d.ts.map