UNPKG

hud-ai

Version:
22 lines (21 loc) 753 B
/// <reference types="bluebird" /> import * as Promise from 'bluebird'; import { RequestManager, RequestOptions } from '../RequestManager'; import { Highlights } from '../entities'; export interface TextAnalysisQueryOpts { corpus?: string; } export interface PageHighlightQueryOpts extends TextAnalysisQueryOpts { url: string; } export interface TextHighlightQueryOpts extends TextAnalysisQueryOpts { text: string; } export declare class HighlightResource { private basePath; private requestManager; constructor(requestManager: RequestManager); makeRequest(options: RequestOptions): Promise<any>; page(params: PageHighlightQueryOpts): Promise<Highlights>; text(params: TextHighlightQueryOpts): Promise<Highlights>; }