import type { Nullable } from './types'; /** * Creates and manages an object URL for the provided `Blob` or `MediaSource`. * * The hook: * - creates an object URL for the current object * - updates the URL when the object changes * - revokes the previous URL asynchronously to avoid revoking it while it may still be in use * - revokes the current URL on unmounting to prevent memory leaks * * This hook returns `null` when no object is provided. * * @param obj - Source object used to create an object URL. * * @returns Object URL for the provided object, or `null` when `obj` is not defined. * * @example * ```tsx * const objectUrl = useObjectUrl(mediaFileData); * * return objectUrl ? Preview : null; * ``` */ export declare const useHoneyObjectUrl: (obj: Nullable | undefined) => Nullable;