import { SerializedStyles } from "@emotion/react"
import { IMPAKTAPPSCodeMirrorProps } from "@/components/CodeEditor/CodeMirror/interface"
import { VALIDATION_TYPES } from "@/utils/validationFactory"

export interface CodeEditorProps
  extends Omit<
    IMPAKTAPPSCodeMirrorProps,
    | "hasError"
    | "resultType"
    | "result"
    | "executionResult"
    | "expressions"
    | "canShowResultRealtime"
  > {
  expectValueType?: VALIDATION_TYPES
  wrappedCodeFunc?: (value: string) => string
  canExpand?: boolean
  modalTitle?: string
  modalDescription?: string
  wrapperCss?: SerializedStyles
}
