import * as React from 'react';
import { FieldProps } from '../Forms/Field';
export interface Props<T = string> extends Omit<FieldProps, 'children'> {
    /** Saving request that will be triggered 600ms after changing the value */
    onFinishChange: (inputValue: T) => Promise<void>;
    /** Custom error message to display on saving */
    saveErrorMessage?: string;
    /** Input that will save its value on change  */
    children: (onChange: (newValue: T) => void) => React.ReactElement;
}
/**
 * Used for form inputs that should save its content automatically.
 *
 * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-autosavefield--docs
 */
export declare function AutoSaveField<T = string>(props: Props<T>): import("react/jsx-runtime").JSX.Element;
export declare namespace AutoSaveField {
    var displayName: string;
}
