import type { FC, HTMLAttributes } from "react";
export declare const weekdayValues: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
export type Weekday = (typeof weekdayValues)[number];
/**
* The previous implementation of this component used the index of the
* weekday to indicate which days were selected. This function converts
* the `Weekday` value from the new API to the `number` value of the
* old API, for ease of migration.
*/
declare function weekdayNameToIndex(weekday: Weekday): 0 | 1 | 2 | 3 | 4 | 5 | 6;
declare function weekdayNameToIndex(weekdays: Weekday[]): 0 | 1 | 2 | 3 | 4 | 5 | 6;
/**
* The previous implementation of this component used the index of the
* weekday to indicate which days were selected. This function converts
* the `number` value from the old API to the `Weekday` value of the
* new API, for ease of migration.
*/
declare function indexToWeekdayName(index: number): Weekday;
declare function indexToWeekdayName(indexes: number[]): Weekday[];
export type Props = Omit, "onChange"> & {
/**
* The locale in which the weekday letters are displayed. Also
* affects the screen reader text.
*/
locale: string;
/**
* This component is controlled, so it needs to be fed in
* state. The result of `onChange` can be passed back in here
* to make the component function as a controlled component.
*/
selectedOptions: Weekday[];
onChange: (weekdayValues: Weekday[]) => void;
};
type StaticProperties = {
weekdayNameToIndex: typeof weekdayNameToIndex;
indexToWeekdayName: typeof indexToWeekdayName;
};
/**
* A component that allows the user to select multiple weekdays.
*/
export declare const WeekdaysPicker: FC & StaticProperties;
export {};