import * as react_jsx_runtime from 'react/jsx-runtime'; import { Style } from '@react-pdf/types'; interface IDocument { title?: string; author?: string; subject?: string; keywords?: string; creator?: string; producer?: string; } interface IPages { wrap?: boolean; orientation?: "portrait" | "landscape"; size: "A3" | "A4" | "A5" | "LETTER" | "LEGAL" | "EXECUTIVE" | "TABLOID"; style?: Style; } type TContent = (IText | ITable | IViews | IImage)[]; interface IText { type: "text"; text: string; style?: Style; } interface IImage { type: "image"; src: string; style?: Style; } interface ITable { type: "table"; style?: Style; columns: { label: string; key: string; flex?: number; style?: Style; }[]; data: any[]; footer?: { contents: ((IText | IImage | IViews) & { flex?: number; styleRow?: Style; })[]; style?: Style; }[]; styleHeader?: Style; styleBody?: Style; styleRowHeader?: Style; styleRowBody?: Style; styleCellHeader?: Style; styleCellBody?: Style; } interface IViews { type: "views"; style?: Style; contents: TContent; } interface IHeader { style?: Style; contents: TContent; } interface IFooter { style?: Style; contents: TContent; } interface IPDFPage { document: IDocument; pages: IPages; contents: TContent; header?: IHeader; footer?: IFooter; } declare const Document: (props: IPDFPage) => react_jsx_runtime.JSX.Element; declare const Table: (props: ITable) => react_jsx_runtime.JSX.Element; declare const ImagePDF: (props: IImage) => react_jsx_runtime.JSX.Element; declare const Text: (props: IText) => react_jsx_runtime.JSX.Element; declare const View: (props: IViews) => react_jsx_runtime.JSX.Element; declare const createStreamPDF: (contentPDF: IPDFPage) => Promise; declare const createFilePDF: (contentPDF: IPDFPage, path: string, callback?: () => void) => Promise; interface ITemplate { name: string; value: string; } declare const replaceVariablesJson: (variables: ITemplate[], objectsJson: string) => string; declare const replaceVariablesObject: (variables: ITemplate[], object: any) => any; declare const validateJsonPDF: (json: any) => Promise; declare const validateObjectPDF: (object: any) => Promise; export { Document, IDocument, IFooter, IHeader, IImage, IPDFPage, IPages, ITable, IText, IViews, ImagePDF, TContent, Table, Text, View, createFilePDF, createStreamPDF, replaceVariablesJson, replaceVariablesObject, validateJsonPDF, validateObjectPDF };