/** An ActiveX control's visible state from its property bag / binary stream (E-SHEET W10). */ export interface ActiveXProps { /** The control's displayed text (CommandButton/Label/CheckBox/OptionButton). */ readonly caption?: string; /** * The control's state/value as persisted (`"1"`/`"0"` for a checkbox/option, the * text for a textbox, a number for a spin/scroll). */ readonly value?: string; /** OptionButton group membership (mutually-exclusive set). */ readonly groupName?: string; } /** * Parse a `xl/activeX/activeX#.xml` part (an `` whose `` children persist the visible state) into {@link ActiveXProps}. Reads the * caption / value / group name; returns `{}` for a non-property-bag control. */ export declare function parseActiveX(data: Uint8Array): ActiveXProps; /** * Map an ActiveX `` to the affordance key the projection switches * on: `Forms.CheckBox.1 → 'checkbox'`, `Forms.CommandButton.1 → 'button'`, …. An * unknown progId falls back to a generic `'control'`. */ export declare function activeXType(progId: string | undefined): string; /** * The affordance key for an ``, for controls reached through * §18.3.1.19 `` rather than `` — the `` * element carries no progId, so the class id is all there is to type it by. * * @param xmlData The `activeX#.xml` part bytes. * @returns The affordance key, or `'control'` when the class id is unknown. */ export declare function activeXTypeFromPart(xmlData: Uint8Array): string; /** * The `` of a control whose state is persisted to a binary stream * (`persistStreamInit` / `persistStream` / `persistStorage`) rather than to * ``; the reader resolves it (through the `activeX#.xml` part's own * relationships) to the `activeX#.bin`. Returns undefined for a property-bag * control (the `.bin` is not needed). */ export declare function activeXBinRelId(xmlData: Uint8Array): string | undefined; /** * Parse an `activeX#.bin` (a `persistStreamInit` MorphDataControl) for its caption, * value and group name, per [MS-OFORMS] §2.2.5. Returns `{}` for any non-MorphData * stream (a CFB storage, a CommandButton/Label, a structurally implausible blob) — * a graceful miss, never a wrong caption. Bounds-checked throughout; any overflow * bails to `{}`. */ export declare function parseActiveXBin(data: Uint8Array): ActiveXProps;