import React from "react"; import { OutputBlockData } from "@editorjs/editorjs"; import { CreateFormParams, FormData } from "../../types"; interface CreateTermsOfServiceComponentArgs { createFormParams: CreateFormParams; formData: FormData; setTermsOfServiceAccepted: (value: boolean) => void; } type ChildrenFunction = (params: { onChange: (value: boolean) => void; errorMessage: string; message: OutputBlockData[]; }) => React.ReactNode; export interface TermsOfServiceProps { children: ChildrenFunction; onChange?: (value: string) => void; onErrored?: (...args: any[]) => void; onExpired?: (...args: any[]) => void; } export type TermsOfServiceComponent = React.ComponentType; declare const createTermsOfServiceComponent: ({ formData, setTermsOfServiceAccepted }: CreateTermsOfServiceComponentArgs) => TermsOfServiceComponent; export default createTermsOfServiceComponent;