/**
* Parse / serialize SpreadsheetML shared string table (`CT_Sst` / `CT_Rst`).
*
* Citations:
* - ECMA-376-1 §12.3.15 Shared String Table Part; §18.4.8 `si`, §18.4.9 `sst`, §18.4.12 `t`
* - `CT_Sst`, `CT_Rst` in transitional `sml.xsd`
* - [MS-OI29500] 2.1.676–678
*
* @private
*/
/** Default security ceiling for SST entry count (`.agent/policies/security.md`). */
export declare const DEFAULT_MAX_SHARED_STRING_ENTRIES = 5000000;
/**
* One SST entry after parse.
*/
export declare type SstEntryXml = {
readonly kind: 'plain';
readonly text: string;
/** Full `...` when original had extra attrs / phonetic / etc. */
readonly xmlPreserve: string | undefined;
} | {
readonly kind: 'rich';
readonly plainFallback: string;
/** Full original `...` element XML for round-trip. */
readonly xmlPreserve: string;
};
/**
* Parsed `sst` model.
*/
export interface SstXmlModel {
readonly entries: ReadonlyArray;
/** `sst/@count` when present; otherwise `undefined`. */
readonly count: number | undefined;
/** `sst/@uniqueCount` when present; otherwise `undefined`. */
readonly uniqueCount: number | undefined;
/** Ordered non-`si` children under `sst` (e.g. `extLst`), full element strings. */
readonly preserveChildrenXml: ReadonlyArray;
/** Extra root attribute text excluding count/uniqueCount and xmlns. */
readonly rootExtraAttrsXml: string;
}
/**
* Parse sharedStrings part bytes.
*/
export declare function parseSstXml(bytes: Uint8Array, partName: string, options?: {
readonly maxEntries?: number;
}): SstXmlModel;
/**
* Serialize SST model to Transitional SpreadsheetML bytes.
*/
export declare function serializeSstXml(model: {
readonly entries: ReadonlyArray;
readonly count: number;
readonly uniqueCount: number;
readonly preserveChildrenXml?: ReadonlyArray;
readonly rootExtraAttrsXml?: string;
}, options?: {
readonly maxEntries?: number;
}): Uint8Array;