type Options = {
    cancelPrevious?: boolean;
    cancelOnUnmount?: boolean;
};
export declare const useSafePromise: ({ cancelPrevious, cancelOnUnmount }?: Options) => <T>(promise: Promise<T>) => Promise<T>;
export {};
