import type { ReactNode } from "react"; import { type LegalContractTemplateRecord } from "../index.js"; export interface TemplateDialogRenderProps { open: boolean; onOpenChange: (open: boolean) => void; template?: LegalContractTemplateRecord; onSuccess: () => void; } /** * Render-prop shape for the template version dialog. Templates' index * page no longer surfaces an "Add version" action (versions are managed * on the template detail page), but the type is still exported for the * detail page to reuse. */ export interface TemplateVersionDialogRenderProps { open: boolean; onOpenChange: (open: boolean) => void; templateId: string; onSuccess: () => void; } export interface TemplatesPageProps { className?: string; onOpenTemplate?: (templateId: string) => void; renderTemplateDialog?: (props: TemplateDialogRenderProps) => ReactNode; } export declare function TemplatesPage({ className, onOpenTemplate, renderTemplateDialog, }?: TemplatesPageProps): import("react").JSX.Element;