import { Filter } from '../../FilterBar/internal/types';
type AddSavedFilterDrawerProps = {
    open: boolean;
    onClose: () => void;
    /** Snapshot of filters captured when the drawer opened. */
    filtersSnapshot: Filter[];
    onSave: (payload: {
        name: string;
        filters: Filter[];
    }) => void | Promise<void>;
    /**
     * Consumer-supplied name validator. Returning a string blocks Add and is
     * surfaced as the field's error message; `undefined` allows submit.
     */
    validateName?: (name: string) => string | undefined;
};
/**
 * Drawer rendered when the user clicks "Save Current Filter" in the
 * SavedFiltersButton popover. Captures a name and emits `onSave` with the
 * filters snapshot. Supports async `onSave`; while pending the Add button
 * shows a loading spinner and the form is disabled.
 *
 * If `onSave` rejects, the drawer stays open with the current input so the
 * user can retry or cancel. On success the drawer closes.
 */
export declare const AddSavedFilterDrawer: ({ open, onClose, filtersSnapshot, onSave, validateName, }: AddSavedFilterDrawerProps) => import("react/jsx-runtime").JSX.Element;
export {};
