import * as React from 'react'; import { type EmbedDocument } from '@simplepdf/embed'; import type { BridgeLogger, BridgeResult, EditorEvent, IframeActions, Locale, SelectToolInput, SubmitInput } from '@simplepdf/embed'; import './styles.scss'; export type EmbedEvent = EditorEvent; type CommonEmbedPDFProps = { companyIdentifier?: string; baseDomain?: string; document?: EmbedDocument; /** @deprecated Use `document={{ url: '…' }}` instead (still accepted). */ documentURL?: string; context?: Record; locale?: Locale; onEmbedEvent?: (event: EmbedEvent) => void | Promise; logger?: BridgeLogger; }; type InlineEmbedPDFProps = CommonEmbedPDFProps & { mode: 'inline'; className?: string; style?: React.CSSProperties; }; type ModalEmbedPDFProps = CommonEmbedPDFProps & { mode?: 'modal'; children: React.ReactNode; }; export type EmbedPDFProps = InlineEmbedPDFProps | ModalEmbedPDFProps; export declare const EmbedPDF: React.ForwardRefExoticComponent>; export type EmbedActions = Omit & { /** Pass `{ tool }`. The bare tool value is the deprecated positional form. */ selectTool: (input: SelectToolInput | SelectToolInput['tool']) => Promise; /** Pass `{ downloadCopy }`. `{ downloadCopyOnDevice }` is the deprecated form. */ submit: (input: SubmitInput | { downloadCopyOnDevice: boolean; }) => Promise; }; export declare const useEmbed: () => { embedRef: React.RefObject; actions: EmbedActions; }; export {};