export declare enum PipelineType { "text-classification" = "text-classification", "token-classification" = "token-classification", "table-question-answering" = "table-question-answering", "question-answering" = "question-answering", "zero-shot-classification" = "zero-shot-classification", "translation" = "translation", "summarization" = "summarization", "conversational" = "conversational", "feature-extraction" = "feature-extraction", "text-generation" = "text-generation", "text2text-generation" = "text2text-generation", "fill-mask" = "fill-mask", "sentence-similarity" = "sentence-similarity", "text-to-speech" = "text-to-speech", "automatic-speech-recognition" = "automatic-speech-recognition", "audio-to-audio" = "audio-to-audio", "audio-source-separation" = "audio-source-separation", "voice-activity-detection" = "voice-activity-detection", "image-classification" = "image-classification", "object-detection" = "object-detection", "image-segmentation" = "image-segmentation", "structured-data-classification" = "structured-data-classification" } export declare const ALL_PIPELINE_TYPES: ("text-classification" | "token-classification" | "table-question-answering" | "question-answering" | "zero-shot-classification" | "translation" | "summarization" | "conversational" | "feature-extraction" | "text-generation" | "text2text-generation" | "fill-mask" | "sentence-similarity" | "text-to-speech" | "automatic-speech-recognition" | "audio-to-audio" | "audio-source-separation" | "voice-activity-detection" | "image-classification" | "object-detection" | "image-segmentation" | "structured-data-classification")[]; export declare const PIPELINE_TYPE_PRETTY_NAMES: { [key in PipelineType]: string; }; /** * Public interface for model metadata */ export interface ModelData { /** * id of model (e.g. 'user/repo_name') */ modelId: string; /** * is this model private? */ private?: boolean; /** * this dictionary has useful information about the model configuration */ config?: Record; /** * all the model tags */ tags?: string[]; /** * this is transformers-specific */ autoArchitecture?: string; /** * Pipeline type */ pipeline_tag?: (keyof typeof PipelineType) | undefined; /** * for relevant models, get mask token */ mask_token?: string | undefined; /** * Example data that will be fed into the widget. * * can be set in the model card metadata (under `widget`), * or by default in `DefaultWidget.ts` */ widgetData?: Record[] | undefined; }