import type { ElementSymbol } from '../element'; import type { CompositionType } from './'; import type { AnyStructure } from '../structure'; export declare const AMOUNT_FORMAT = ".3~f"; export declare const format_amount: (amount: number, amount_format?: string) => string; export type FormulaFormatOptions = { plain_text?: boolean; delim?: string; amount_format?: string; }; export declare const format_composition_formula: (composition: CompositionType, sort_fn: (symbols: ElementSymbol[]) => ElementSymbol[], { plain_text, delim, amount_format, }?: FormulaFormatOptions) => string; type FormulaInput = string | CompositionType | AnyStructure; export declare const get_alphabetical_formula: (input: FormulaInput, options?: FormulaFormatOptions) => string; export declare const sort_by_electronegativity: (symbols: ElementSymbol[]) => ElementSymbol[]; export declare const sort_by_hill_notation: (symbols: ElementSymbol[]) => ElementSymbol[]; export declare const get_electro_neg_formula: (input: FormulaInput, options?: FormulaFormatOptions) => string; export interface FormulaMarkupToken { text?: string; sub?: string; sup?: string; } export declare function is_compound(name: string): boolean; export declare function tokenize_formula_markup(formula: string): FormulaMarkupToken[]; export interface FormulaLabelSegment { text: string; subscript: boolean; } export declare function get_formula_label_segments(label: string): FormulaLabelSegment[]; export declare function format_formula_svg(formula: string, use_subscripts?: boolean): string; export declare function format_formula_html(formula: string, use_subscripts?: boolean): string; export declare const format_label_svg: (label: string, use_subscripts?: boolean) => string; export declare const format_label_html: (label: string, use_subscripts?: boolean) => string; export declare function format_oxi_state(oxidation?: number): string; export {};