import type { LoaderFunction } from 'expo-server'; type LoaderFunctionResult> = T extends LoaderFunction ? R : unknown; /** * Returns the result of the `loader` function for the calling route. * * @example * ```tsx app/profile/[user].tsx * import { Text } from 'react-native'; * import { useLoaderData } from 'expo-router'; * * export function loader() { * return Promise.resolve({ foo: 'bar' }}; * } * * export default function Route() { * const data = useLoaderData(); // { foo: 'bar' } * * return Data: {JSON.stringify(data)}; * } */ export declare function useLoaderData = any>(): LoaderFunctionResult; export {}; //# sourceMappingURL=useLoaderData.d.ts.map