import { type CoreProperties, type ExtendedProperties, type CustomProperty } from './properties.js'; import type { CellStyle, RichTextRun, NamedRange, Connection, PowerQuery, ConnectionType, CommandType } from './types.js'; import { Worksheet } from './Worksheet.js'; export interface RawPart { path: string; data: Uint8Array; contentType: string; } type RelEntry = { type: string; target: string; targetMode?: string; }; type RelMap = Map; type CTMap = Map; interface ParsedStyles { xfs: CellStyle[]; numFmts: Map; dxfs: CellStyle[]; } interface SharedStringEntry { text: string; richText?: RichTextRun[]; } export interface ReadResult { sheets: Array<{ ws: Worksheet; sheetId: string; rId: string; originalXml: string; unknownParts: string[]; tablePaths: string[]; tableXmls: string[]; }>; styles: ParsedStyles; stylesXml: string; sharedStrings: SharedStringEntry[]; sharedXml: string; workbookXml: string; workbookRels: RelMap; contentTypes: CTMap; contentTypesXml: string; core: CoreProperties; extended: ExtendedProperties; extendedUnknownRaw: string; custom: CustomProperty[]; hasCustomProps: boolean; namedRanges: NamedRange[]; connections: Connection[]; connectionsXml: string; powerQueries: PowerQuery[]; unknownParts: Map; allRels: Map; } export declare function readWorkbook(data: Uint8Array): Promise; export declare function connTypeToNum(t: ConnectionType): number; export declare function cmdTypeToNum(t: CommandType): number; export {};