import React, { ReactNode } from 'react'; import { ButtonProps } from 'acud/lib/button'; import { TooltipProps } from 'acud/lib/tooltip'; import './index.less'; interface BackProps { text?: ReactNode; url?: string; goBack?: boolean; onClick?: () => void; } interface ActionsProps extends Omit { key: string; text: React.ReactNode; tooltip?: TooltipProps; onClick?: (e: any, action: Omit) => void; } export interface HeaderProps { back?: string | BackProps; title: React.ReactNode; desc?: React.ReactNode; actions?: ActionsProps[]; custom?: { left?: React.ReactNode; right?: React.ReactNode; }; size?: 'medium' | 'small'; className?: string; style?: React.CSSProperties; } export interface HeaderInterface extends React.FC { } declare const Header: HeaderInterface; export default Header;