/** * This file contains code adapted from the React Spectrum project. * * Copyright (c) [year(s)], Adobe Inc. and other contributors. * All rights reserved. * * This source code is licensed under the Apache License, Version 2.0 * found in the LICENSE.txt file at the root directory of this source tree. */ import { DateFormatter } from '../../date'; export interface DateFormatterOptions extends Intl.DateTimeFormatOptions { calendar?: string; } /** * Provides localized date formatting for the current locale. Automatically updates when the locale changes, * and handles caching of the date formatter for performance. * @param options - Formatting options. */ export declare function useDateFormatter(options?: DateFormatterOptions): DateFormatter;