import type { PromiseState } from "../types"; /** * Returns the props with `onChange` and `onChangeError` the `condition` is truthy. Useful for disabling edits in some cases. * * @example * ```tsx * <> * * * * ``` * * @param condition Boolean that disables changes if true, or `PromiseState` * @returns The props necessary to disable changes or not. */ export declare function disable(condition?: boolean | PromiseState): { onChange: undefined; onChangeError: undefined; } | null;