import { type ControllerProps } from 'react-hook-form';

import { type SxProps, type Theme } from '@material-hu/mui/styles';

export type CertificateMultilineHandle = {
  insertToken: (token: string) => void;
};

export type CertificateMultilineWithTokenHighlightProps = {
  name: string;
  rules?: ControllerProps['rules'];
  maxLength: number;
  minRows: number;
  maxRows?: number;
  id: string;
  placeholder?: string;
  showClear?: boolean;
  hasCounter?: boolean;
  sx?: SxProps<Theme>;
};
