/* auto-generated by NAPI-RS */ /* eslint-disable */ /** * Extract FileHeader from HWP file as JSON * * # Arguments * * `data` - Byte array containing HWP file data (Buffer or Uint8Array) * * # Returns * FileHeader as JSON string */ export declare function fileHeader(data: Buffer): string /** Image data structure */ export interface ImageData { /** * Image ID (e.g., "image-0") * 이미지 ID (예: "image-0") */ id: string /** * Image data as Uint8Array * 이미지 데이터 (Uint8Array) */ data: Buffer /** * Image format (e.g., "jpg", "png", "bmp") * 이미지 형식 (예: "jpg", "png", "bmp") */ format: string } /** * Convert HWP file to HTML format * * # Arguments * * `data` - Byte array containing HWP file data (Buffer or Uint8Array) * * `options` - Optional HTML conversion options * * # Returns * HTML string representation of the document */ export declare function toHtml(data: Buffer, options?: ToHtmlOptions | undefined | null): string /** HTML conversion options */ export interface ToHtmlOptions { /** * Optional directory path to save images as files. If None, images are embedded as base64 data URIs. * 이미지를 파일로 저장할 디렉토리 경로 (선택). None이면 base64 데이터 URI로 임베드됩니다. */ imageOutputDir?: string /** * Directory path where HTML file is saved (used for calculating relative image paths) * HTML 파일이 저장되는 디렉토리 경로 (이미지 상대 경로 계산에 사용) */ htmlOutputDir?: string /** * Whether to include version information * 버전 정보 포함 여부 */ includeVersion?: boolean /** * Whether to include page information * 페이지 정보 포함 여부 */ includePageInfo?: boolean /** * CSS class prefix (default: "" - noori.html style) * CSS 클래스 접두사 (기본값: "" - noori.html 스타일) */ cssClassPrefix?: string } /** * Convert HWP file to JSON * * # Arguments * * `data` - Byte array containing HWP file data (Buffer or Uint8Array) * * # Returns * Parsed HWP document as JSON string */ export declare function toJson(data: Buffer): string /** * Convert HWP file to Markdown format * * # Arguments * * `data` - Byte array containing HWP file data (Buffer or Uint8Array) * * `options` - Optional markdown conversion options * * # Returns * ToMarkdownResult containing markdown string and image data */ export declare function toMarkdown(data: Buffer, options?: ToMarkdownOptions | undefined | null): ToMarkdownResult /** Markdown conversion options */ export interface ToMarkdownOptions { /** * Optional directory path to save images as files. If None, images are embedded as base64 data URIs. * 이미지를 파일로 저장할 디렉토리 경로 (선택). None이면 base64 데이터 URI로 임베드됩니다. */ imageOutputDir?: string /** * Image format: 'base64' to embed base64 data URI directly in markdown, 'blob' to return as separate ImageData array (default: 'blob') * 이미지 형식: 'base64'는 마크다운에 base64 데이터 URI를 직접 포함, 'blob'은 별도 ImageData 배열로 반환 (기본값: 'blob') */ image?: string /** * Whether to use HTML tags (if Some(true), use
tags in areas where line breaks are not possible, such as tables) * HTML 태그 사용 여부 (Some(true)인 경우 테이블 등 개행 불가 영역에
태그 사용) */ useHtml?: boolean /** * Whether to include version information * 버전 정보 포함 여부 */ includeVersion?: boolean /** * Whether to include page information * 페이지 정보 포함 여부 */ includePageInfo?: boolean } /** Markdown conversion result */ export interface ToMarkdownResult { /** * Markdown string with image references (e.g., "![이미지](image-0)") * 이미지 참조가 포함된 마크다운 문자열 (예: "![이미지](image-0)") */ markdown: string /** * Extracted image data * 추출된 이미지 데이터 */ images: Array }