import type { EntityAccessor, EntityId, PersistSuccessOptions } from '@contember/react-binding';
import { IncompleteRequestState, PageRequest } from '../../routing';
export type RedirectOnSuccessHandler = (currentState: PageRequest<any>, persistedId: EntityId, entity: EntityAccessor, options: PersistSuccessOptions) => IncompleteRequestState | string | undefined;
export type RedirectOnSuccessTarget = string | IncompleteRequestState | RedirectOnSuccessHandler;
export declare const useEntityRedirectOnPersistSuccess: (target: RedirectOnSuccessTarget | undefined) => EntityAccessor.PersistSuccessHandler | undefined;
//# sourceMappingURL=useEntityRedirectOnPersistSuccess.d.ts.map