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