import * as React from 'react';
import { type LoaderFunctionArgs } from 'react-router';
import { type Snapshot } from 'recoil';
import { type ComponentInstance, type RouteDefinition } from '../types';
import { type LoaderData } from './fetching';
export interface LoaderResult {
    data: LoaderData | Promise<LoaderData>;
    fallback?: ComponentInstance;
}
export declare function createRouteLoader(route: RouteDefinition, snapshot: () => Snapshot): ({ request: loaderRequest, params }: LoaderFunctionArgs) => Promise<{
    data: LoaderData | Promise<LoaderData>;
    fallback: ComponentInstance<import("../types").BaseComponentProps> | undefined;
}>;
declare function RouteContent(props: {
    route: RouteDefinition;
}): React.ReactNode;
export default RouteContent;
//# sourceMappingURL=route-content.d.ts.map