import { ReactElement, FocusEvent } from 'react'; import { IconName } from '../Icon'; import { CommonProps } from '../common'; export interface WeekPickerProps extends CommonProps { /** * Specify the [automated assistance](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) in filling out form field values by the browser. */ autoComplete?: string; /** * Whether the picker is disabled. */ disabled?: boolean; /** * Week format. Following date-fns's format (https://date-fns.org/v2.16.1/docs/format). */ format?: string; /** * Whether the input is invalid. */ invalid?: boolean; /** * Name of element, is used to refer to the form data for submission. */ name?: string; /** * Blur event handler. */ onBlur?: (e: FocusEvent) => void; /** * onChange event handler. */ onChange?: (value: string) => void; /** * Placeholder text in the absence of any value. */ placeholder?: string; /** * Name of Icon or an Icon element to render on the left side of the input, before the user's cursor. */ prefix?: IconName | ReactElement; /** * Whether or not Input's value is read only. */ readonly?: boolean; /** * The size of the input box. */ size?: 'small' | 'medium' | 'large'; /** * Current selected date which must be in correct format. If value is invalid, it will be skipped. */ value?: string; } declare const WeekPicker: ({ autoComplete, value, onChange, onBlur, size, invalid, placeholder, prefix, disabled, format, readonly, name, id, className, style, sx, "data-test-id": dataTestId, }: WeekPickerProps) => ReactElement; export default WeekPicker;