import { ResourceSource } from '../../types/common';
interface Props {
    model: {
        modelSource: ResourceSource;
    };
    preventLoad?: boolean;
}
export declare const useObjectDetection: ({ model, preventLoad }: Props) => {
    error: string | null;
    isReady: boolean;
    isGenerating: boolean;
    downloadProgress: number;
    forward: (imageSource: string, detectionThreshold?: number | undefined) => Promise<import("../..").Detection[]>;
};
export {};
