import type { Dimension, FootnoteNumberFormat, FootnoteNumbering, FootnotePlacement, FootnotesConfig, ResolvedFootnotesConfig } from '../types.js'; export declare const DEFAULT_FOOTNOTES_CONFIG: ResolvedFootnotesConfig; /** A footnote `numberFormat` in any spelling: `'symbols'` (or `'*'`) for * the reference symbols, else any spelling of a numeral style (see * `parseNumberFormat`). `undefined` for anything else. */ export declare function parseFootnoteNumberFormat(value: unknown, locale?: string): FootnoteNumberFormat | undefined; /** * The values a document's unset footnote fields take when they are not * {@link DEFAULT_FOOTNOTES_CONFIG}'s: a Japanese document's (JLReq §4.2), * by writing mode, and the per-spread numbering of `placement: 'spread'`. * `placement` is the author's, when set: the endnote setting (a full em * after the number, turnover lines hung 2 note-ems) goes with endnotes. * Empty for every other document, which resolves exactly as before. */ export declare function footnoteDocumentDefaults(locale: string | undefined, writingMode: 'horizontal-tb' | 'vertical-rl' | undefined, placement?: FootnotePlacement): { placement?: FootnotePlacement; numbering?: FootnoteNumbering; markerPosition?: 'right'; markerTemplate?: string; numberGap?: 'em'; hangingIndent?: Dimension; separatorWidth?: number; }; /** `locale`: the document language, which `一` / `壹` formats follow and * whose defaults (Japanese, see {@link footnoteDocumentDefaults}) the * unset fields take, with `writingMode` (`layout.writingMode`). */ export declare function resolveFootnotesConfig(partial?: FootnotesConfig, locale?: string, writingMode?: 'horizontal-tb' | 'vertical-rl'): ResolvedFootnotesConfig; /** `footnotes` without the fields at their default. `locale` and * `writingMode` are the document's: a Japanese document keeps a value its * own defaults would not give (`markerTemplate: '{n}'`, `placement: * 'column'` in a vertical book), so the config reads back as written. */ export declare function stripFootnotesDefaults(footnotes?: FootnotesConfig, locale?: string, writingMode?: 'horizontal-tb' | 'vertical-rl'): FootnotesConfig | undefined; //# sourceMappingURL=footnotes.d.ts.map