export type VbaModuleType = 'document' | 'standard' | 'class' | 'userform'; export interface VbaModule { name: string; type: VbaModuleType; code: string; designerData?: Uint8Array; controls?: VbaFormControl[]; _formStreams?: Map; } export interface VbaFormControl { type: 'CommandButton' | 'TextBox' | 'Label' | 'ComboBox' | 'ListBox' | 'CheckBox' | 'OptionButton' | 'Frame' | 'Image' | 'SpinButton' | 'ScrollBar' | 'ToggleButton'; name: string; caption?: string; left?: number; top?: number; width?: number; height?: number; } export declare class VbaProject { modules: VbaModule[]; private _raw?; private _dirty; addModule(m: VbaModule): this; removeModule(name: string): this; getModule(name: string): VbaModule | undefined; build(): Uint8Array; private _buildDirStream; private _buildProjectText; private _buildProjectWm; static fromBytes(data: Uint8Array): VbaProject; }