import React from 'react'; interface Props { className?: string; style?: React.CSSProperties; defaultChecked?: boolean; indeterminate?: boolean; disabled?: boolean; checked?: boolean; name: string; record?: { id: any; [propsName: string]: any; } | null; onChange?: (value: boolean, recordId: string) => any; /** 当返回值为boolean 类型时 并前返回值与@param value 相同时 则改变checkbox 否则则将阻止checkbox状态改变 */ customReducer?: (currentState: StateProps, action: ActionProps) => StateProps; } interface StateProps { checked?: boolean; indeterminate?: boolean; } export declare type ICheckBoxActionTypes = 'init' | 'no-check' | 'check' | 'indeterminate' | 'change'; interface ActionProps extends Partial { type: ICheckBoxActionTypes; } declare const _default: React.FunctionComponent; export default _default;