import { BaseAdapter } from './base-adapter'; /** * Default adapter for @react-pdf/renderer components. * This adapter maintains backward compatibility with the existing * react-escpos API and component naming conventions. * * Supported component mappings: * - Document → document * - Page → page * - View → view * - Text → text * - Image → image * - TextNode → textnode * * @example * ```typescript * import { Document, Page, View, Text } from '@react-pdf/renderer'; * * const receipt = ( * * * * Hello World * * * * ); * * const adapter = new ReactPDFAdapter(); * const buffer = await convertToESCPOS(receipt, { adapter }); * ``` */ export declare class ReactPDFAdapter extends BaseAdapter { private readonly componentMap; constructor(); /** * Normalizes @react-pdf/renderer component types to standard element types. * Performs case-insensitive matching to handle variations in component naming. * * @param type - The component type name (e.g., "Document", "View", "Text") * @returns The normalized standard element type (e.g., "document", "view", "text") */ normalizeElementType(type: string): string; } //# sourceMappingURL=react-pdf-adapter.d.ts.map