import React from 'react'; import { MarginProps } from 'styled-system'; export declare type CalendarDate = string | Date; export declare type CalendarValue = CalendarDate | string[] | Date[] | null; export declare type InitialFocus = CalendarDate | { year?: number; month?: number; day?: number; }; interface WeekdayLabel { long: string; short: string; } export interface FocusProps { initialFocus?: InitialFocus; month?: number; year?: number; } export interface CalendarGridLabels { labelDate?: (d: Date) => string; labelDisabled?: (normalLabel: string) => string; weekdays?: string[] | WeekdayLabel[] | null; } export interface BaseProps extends FocusProps, React.HTMLAttributes { children?: never; locale?: string; isValidDate?: (d: Date) => boolean; selected?: CalendarValue; labels?: CalendarGridLabels; onFocusOverflow?: (d: Date, e: React.SyntheticEvent) => void; } export declare type CalendarGridProps = BaseProps & MarginProps; interface GridState { overflow: string | null; year: number; month: number; day: number; } export declare const queryDate: (root: HTMLElement, date: string) => HTMLElement | null; export declare const initGridState: (initialFocus: BaseProps['initialFocus']) => GridState; export declare const CalendarGrid: import("styled-components").StyledComponent<({ initialFocus, month: monthProp, year: yearProp, locale, labels, isValidDate, selected, onFocusOverflow, onClick, onKeyDown, onFocus, onBlur, ...rest }: BaseProps) => JSX.Element, import("styled-components").DefaultTheme, MarginProps>> & { as: ({ initialFocus, month: monthProp, year: yearProp, locale, labels, isValidDate, selected, onFocusOverflow, onClick, onKeyDown, onFocus, onBlur, ...rest }: BaseProps) => JSX.Element; }, "as">; export default CalendarGrid;