import React from "react";
import type { DataGridSettings } from "../../data-grid/root/DataGrid.types.js";
interface DataGridPreferencesProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
    children?: never;
    /**
     * Controls which preference fields are shown.
     *
     * All fields are visible by default. Set a field to `false` to hide it.
     * Fields left out of the object stay visible.
     *
     * @example
     * // Hide the text size field
     * fields={{ textSize: false }}
     */
    fields?: Partial<Record<keyof DataGridSettings, boolean>>;
    /**
     * Whether the DataGrid Preferences dialog is currently open.
     */
    open?: boolean;
    /**
     * Whether the DataGrid Preferences dialog should be initially open.
     *
     * To render a controlled dialog, use the `open` prop instead.
     * @default false
     */
    defaultOpen?: boolean;
    /**
     * Event handler called when the DataGrid Preferences dialog is opened or closed.
     */
    onOpenChange?: (nextOpen: boolean) => void;
    /**
     * Event handler called after any animations complete when the DataGrid Preferences dialog is opened or closed.
     */
    onOpenChangeComplete?: (open: boolean) => void;
    /**
     * An optional container where the portaled content should be appended.
     */
    rootElement?: HTMLElement | null;
}
/**
 * Component for displaying preferences/settings for DataGrid.
 *
 * **WARNING: This component is in active development and may receive breaking changes outside major releases!**
 *
 * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/datagrid)
 * @see 🏷️ {@link DataGridPreferences}
 *
 * @example
 * ```jsx
 * <DataGrid columns={columns} data={data} onSettingsChange={handleSettingsChange}>
 *   <DataGrid.Preferences />
 *   <DataGrid.Table />
 * </DataGrid>
 * ```
 */
declare const DataGridPreferencesRoot: React.ForwardRefExoticComponent<DataGridPreferencesProps & React.RefAttributes<HTMLButtonElement>>;
export declare namespace DataGridPreferencesRoot {
    type Props = DataGridPreferencesProps;
}
export type { DataGridPreferencesProps };
export { DataGridPreferencesRoot };
export default DataGridPreferencesRoot;
