/** * DeukPack Excel Protocol for TypeScript * DpProtocol implementation that reads Excel data using numeric field-ID hierarchy headers. * * Excel layout (same as C# DpExcelProtocol): * Row 0: schema info * Row 1: HIERARCHY_ID (numeric field IDs, dot-separated: "1", "20", "20.1", "40.22.1") * Row 2: DATATYPE 득팩 표준 (int32, int64, list, list, record, enum, ...). 레거시 i64/rec/lst 도 수용. * Row 3: COLUMN_NAME (human-readable) * Row 4: COMMENT * Row 5+: DATA */ import { DpProtocol, DpStruct, DpField, DpList, DpSet, DpMap } from './WireProtocol'; import { IExcelSheet, HIERARCHY_ID_ROW, DATATYPE_ROW, FIRST_DATA_ROW } from './ExcelUtils'; export { IExcelSheet, HIERARCHY_ID_ROW, DATATYPE_ROW, FIRST_DATA_ROW }; type EnumResolver = (typeName: string, name: string) => number | undefined; export declare class DpExcelProtocol implements DpProtocol { private readonly _sheet; private _dataRow; private readonly _fieldIdToCol; private readonly _colDataType; private readonly _pathStack; private _currentPath; private readonly _structStack; private _pendingFields; private _pendingIdx; private readonly _listStack; private _lastField; private readonly _enumResolver; constructor(sheet: IExcelSheet, dataRow?: number, enumResolver?: EnumResolver); getDataRow(): number; setDataRow(row: number): void; private buildColumnMap; private collectChildFields; readStructBegin(): DpStruct; readStructEnd(): void; readFieldBegin(): DpField; readFieldEnd(): void; private hasAnyChildData; private countListElements; private inferListElementType; readListBegin(): DpList; readListEnd(): void; private advanceListElementIfPrimitive; readBool(): boolean; readByte(): number; readI16(): number; readI32(): number; readI64(): bigint; readDouble(): number; readString(): string; readBinary(): Uint8Array; readSetBegin(): DpSet; readSetEnd(): void; readMapBegin(): DpMap; readMapEnd(): void; private readCurrentCellValue; private resolveEnumName; writeStructBegin(_s: DpStruct): void; writeStructEnd(): void; writeFieldBegin(_f: DpField): void; writeFieldEnd(): void; writeFieldStop(): void; writeBool(_b: boolean): void; writeByte(_b: number): void; writeI16(_i16: number): void; writeI32(_i32: number): void; writeI64(_i64: bigint): void; writeDouble(_d: number): void; writeString(_s: string): void; writeBinary(_b: Uint8Array): void; writeListBegin(_list: DpList): void; writeListEnd(): void; writeSetBegin(_set: DpSet): void; writeSetEnd(): void; writeMapBegin(_map: DpMap): void; writeMapEnd(): void; } //# sourceMappingURL=ExcelProtocol.d.ts.map