import type { Media } from "@osdk/api";
export interface UseMediaContentsResult<T> {
	data: T | undefined;
	loading: boolean;
	error: Error | undefined;
}
/**
* Fetches media contents and transforms the response into the desired type.
*
* @param media - The OSDK Media object to fetch contents from
* @param transform - Converts the fetch Response into the target type
* @param cleanup - Optional cleanup function called when data is replaced or on unmount
*                  (e.g., URL.revokeObjectURL for blob URLs)
*/
export declare function useMediaContents<T>(media: Media, transform: (response: Response) => Promise<T>, cleanup?: (data: T) => void): UseMediaContentsResult<T>;
