import { type ReactNode } from 'react'; import { type FieldFormatOptions } from './format'; import { type DocumentPageRegistration } from './registry'; import type { DocumentContext, DocumentSlotRenderer, ResolvedAction } from './types'; export interface DocumentPageProps extends FieldFormatOptions { registration: DocumentPageRegistration; record: Record; /** * Ejecuta una acción. El host decide: abrir el modal de la acción del * modelo (`def.modelAction ?? def.key`), navegar (`def.href`), etc. La * promesa mantiene el botón en `loading`. */ onAction: (action: ResolvedAction, ctx: DocumentContext) => void | Promise; /** UI del host para pestañas `kind: 'slot'` (historial, archivos, vista previa PDF…). */ slots?: Record; /** Navegación del host (botones inteligentes, cliente). */ onNavigate?: (href: string) => void; renderLink?: (props: { href: string; children: ReactNode; className?: string; }) => ReactNode; /** Botón «Volver» u otro contenido antes del título. */ leading?: ReactNode; /** Pestaña inicial (`?tab=`). */ defaultTab?: string; /** Pestaña controlada por el host (p. ej. «Ver detalle del error» abre Datos fiscales). */ tab?: string; onTabChange?: (tab: string) => void; /** Ruta base para el enlace del subtítulo (`/m/customers/{{customer_id}}`). */ subtitleHrefTemplate?: string; /** Cambia para forzar recarga de las fuentes tras una acción. */ reloadKey?: number; className?: string; } export declare function DocumentPage(props: DocumentPageProps): import("react").JSX.Element; //# sourceMappingURL=document-page.d.ts.map