import { ComponentClass } from 'react'
import { CommonEventFunction } from '@tarojs/components/types/common'
import CtsComponent from './base'

export interface CtsNavTitleProps extends CtsComponent { 
  /**
   * 导航栏标题
   */
  title: string
  /**
   * 导航栏背景颜色
   */
  bgColor?: string
  /**
   * 导航栏字体颜色
   */
  navColor?: string
  /**
   * 导航栏左边内容是否自定义
   * @default false
   */
  isNavReturnRender?: boolean
  /**
   * 额外左边内容子元素
   */
  renderNavReturn?: any
  /**
   * 导航栏点击返回事件，默认返回上一页
   */
  returnClick?: CommonEventFunction
}

declare const CtsNavTitle: ComponentClass<CtsNavTitleProps>

export default CtsNavTitle