import { PersistOptions, SuccessfulPersistResult } from '@contember/binding';
export interface PersistWithFeedbackOptions extends PersistOptions {
    successMessage?: string;
    successDuration?: number;
    errorMessage?: string;
    errorDuration?: number;
    afterPersistErrorMessage?: string;
    afterPersistErrorDuration?: number;
}
export declare const usePersistWithFeedback: ({ successMessage, successDuration, errorMessage, errorDuration, afterPersistErrorMessage, afterPersistErrorDuration, ...persistOptions }?: PersistWithFeedbackOptions) => () => Promise<SuccessfulPersistResult>;
//# sourceMappingURL=usePersistWithFeedback.d.ts.map