import React, { ReactNode } from 'react'; export { P as PdfOptions, a as PdfOutput, p as pdf } from './pdf-Do6DoZxg.cjs'; export { I as InspectorRenderResult, r as renderForInspector, a as renderToBuffer, b as renderToStream } from './server-BKJXzFCt.cjs'; import '@imprint-pdf/core'; interface BookmarkProps { /** The text label shown in the PDF outline panel. */ title: string; /** Heading level (1–6); controls indentation in the PDF outline. Defaults to 1. */ level?: 1 | 2 | 3 | 4 | 5 | 6; className?: string; style?: Record; children?: ReactNode; } declare function Bookmark({ children, ...rest }: BookmarkProps): React.ReactElement; interface ButtonProps { name: string; /** PDF action to perform when the button is activated (e.g. submit-form URL). */ action?: string; className?: string; style?: Record; children?: ReactNode; } declare function Button({ children, ...rest }: ButtonProps): React.ReactElement; interface ChartProps { width: number; height: number; className?: string; style?: Record; /** SVG children that define the chart visuals. */ children?: ReactNode; } declare function Chart({ children, ...rest }: ChartProps): React.ReactElement; interface CheckboxProps { name: string; required?: boolean; defaultChecked?: boolean; className?: string; style?: Record; } declare function Checkbox({ ...rest }: CheckboxProps): React.ReactElement; type PageSize = 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'B4' | 'B5' | 'B6' | 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'Executive' | 'DL' | 'C5' | [number, number]; type SizeUnit = 'pt' | 'mm' | 'cm' | 'in' | 'px'; type PageOrientation = 'portrait' | 'landscape'; interface PageProps { size?: PageSize; sizeUnit?: SizeUnit; orientation?: PageOrientation; bleed?: number; marks?: boolean; className?: string; style?: Record; children?: ReactNode; } declare function Page({ children, ...rest }: PageProps): React.ReactElement; interface PageDefaults { size?: PageSize; sizeUnit?: SizeUnit; orientation?: PageOrientation; } interface DocumentProps { title?: string; author?: string; subject?: string; keywords?: string[]; lang?: string; intent?: string; outputIntent?: string; embeds?: Array<{ name: string; data: Uint8Array; mimeType: string; }>; /** Default page size/orientation for all pages that don't specify their own. */ pageDefaults?: PageDefaults; className?: string; style?: Record; children?: ReactNode; } declare function Document({ children, ...rest }: DocumentProps): React.ReactElement; interface DropdownOption { value: string; label: string; } interface DropdownProps { name: string; options: DropdownOption[]; defaultValue?: string; className?: string; style?: Record; } declare function Dropdown({ ...rest }: DropdownProps): React.ReactElement; interface FooterProps { className?: string; style?: Record; children?: ReactNode; } /** * Running page footer — rendered once and repeated across all pages by the * PDF writer. */ declare function Footer({ children, ...rest }: FooterProps): React.ReactElement; interface FormProps { name?: string; className?: string; style?: Record; children?: ReactNode; } declare function Form({ children, ...rest }: FormProps): React.ReactElement; interface HeaderProps { className?: string; style?: Record; children?: ReactNode; } /** * Running page header — rendered once and repeated across all pages by the * PDF writer. */ declare function Header({ children, ...rest }: HeaderProps): React.ReactElement; interface ImageProps { /** URL or data-URI of the image to embed. */ src: string; /** Accessible description (stored as alt prop). */ alt?: string; /** How the image should be fitted within its container. */ objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; className?: string; style?: Record; } declare function Image({ ...rest }: ImageProps): React.ReactElement; interface LinkProps { /** The URL this link points to. */ href: string; className?: string; style?: Record; children?: ReactNode; } declare function Link({ children, ...rest }: LinkProps): React.ReactElement; /** * Renders a placeholder that the PDF writer replaces with the current page * number at write time. Lays out as `inline-flex` so siblings like * `Page ` render on a single line — a plain * `view` would default to a block and break inline flow. */ declare function PageNumber(): React.ReactElement; interface RadioOption { value: string; label: string; } interface RadioGroupProps { name: string; options: RadioOption[]; defaultValue?: string; className?: string; style?: Record; } declare function RadioGroup({ ...rest }: RadioGroupProps): React.ReactElement; interface SignatureProps { name: string; certificate?: string; privateKey?: string; className?: string; style?: Record; } declare function Signature({ ...rest }: SignatureProps): React.ReactElement; interface SvgProps { /** URL or inline SVG source. */ src?: string; className?: string; style?: Record; /** Inline SVG child elements (alternative to `src`). */ children?: ReactNode; } declare function Svg({ children, ...rest }: SvgProps): React.ReactElement; type TextFieldType = 'text' | 'password' | 'email' | 'number' | 'date' | 'tel'; interface TextFieldProps { name: string; type?: TextFieldType; required?: boolean; multiline?: boolean; maxLength?: number; defaultValue?: string; placeholder?: string; className?: string; style?: Record; } declare function TextField({ ...rest }: TextFieldProps): React.ReactElement; /** * Renders a placeholder that the PDF writer replaces with the total page * count at write time. Lays out as `inline-flex` so siblings like * `of ` render on a single line — a plain * `view` would default to a block and break inline flow. */ declare function TotalPages(): React.ReactElement; interface WatermarkProps { className?: string; style?: Record; children?: ReactNode; } /** * Watermark — rendered behind page content on every page. */ declare function Watermark({ children, ...rest }: WatermarkProps): React.ReactElement; export { Bookmark, type BookmarkProps, Button, type ButtonProps, Chart, type ChartProps, Checkbox, type CheckboxProps, Document, type DocumentProps, Dropdown, type DropdownOption, type DropdownProps, Footer, type FooterProps, Form, type FormProps, Header, type HeaderProps, Image, type ImageProps, Link, type LinkProps, Page, type PageDefaults, PageNumber, type PageOrientation, type PageProps, type PageSize, RadioGroup, type RadioGroupProps, type RadioOption, Signature, type SignatureProps, type SizeUnit, Svg, type SvgProps, TextField, type TextFieldProps, type TextFieldType, TotalPages, Watermark, type WatermarkProps };