/// import { Url } from "url"; export declare enum FormatEnum { JSON = "json", XML = "xml" } export type MainProps = { header?: number; summary?: number; }; export type ParamsProps = { reqestedarticles?: number; main?: MainProps; }; export type SearchProps = { searchterm: string; params?: ParamsProps; }; export type textProps = { matches: boolean; text: string; }; export type ImageProps = { url: Url; }; export type DocumentProps = { id_site: number; id_article: number; hidden: boolean; position: number; countrycode: string; countryname: string; similarweb: { domain: string; }; site_rank: { rank_global: number; rank_country: number; }; unix_timestamp: number; media_type: { timemap: boolean; clip: boolean; hastext: boolean; haslogo: boolean; paywall: boolean; fulltext: boolean; text: string; }; stimestamp: number; stimestamp_index: number; local_time: { GMT: number; text: string; }; local_rcf822_time: { text: string; }; distribute_conditions: string; content_protected: number; language: { encoding: string; text: string; }; word_count: number; first_source: { id: number | string; name: string; sitename: string; url: Url; siteurl: Url; }; header: textProps; summary: textProps; body: textProps; articleimages: { count: number; articleimage: Array; }; caption: { text: string; }; quotes: any; url: Url; orig_url: Url; url_common: Url; screenshots: any; author: string; exists_in_basket: string; tags: Array; stored_search_id: number; }; export type StoredSearchListResponse = Array; export type StoredSearchFeedProps = { from: number; to?: number; format?: FormatEnum; num_art?: number; topics?: number; matches?: number; equalgroup?: number; readership?: number; textrazor?: number; }; export type StoredSearchFeedResponse = { searchresult: { documents: number; search_start: number; covered: number; next_from: number; first_timestamp?: number; last_timestamp?: number; generated_timestamp?: number; cacheage?: number; cputime?: number; host?: string; compiledate?: string; notimeout?: boolean; document?: Array; }; }; export type StoredSearchListProps = {}; export type StoredSearchAddProps = { search: string; access_group?: string; get_old_articles?: boolean; max_age?: number; use_syndicates?: boolean; }; export type StoredSearchAddResponse = { id: number | string; } & StoredSearchAddProps; export type StoredSearchRetrieveProps = { id: number | string; }; export type StoredSearchRetrieveResponse = { last_new_article: number; access_group: { access_groups: Array; sites: Array; sources: Array; }; } & StoredSearchAddResponse; export type StoredSearchUpdateProps = { id: number | string; } & StoredSearchAddProps; export type StoredSearchUpdateResponse = StoredSearchRetrieveResponse; export type StoredSearchDeleteProps = { id: number | string; }; export type StoredSearchDeleteResponse = {}; export type OpointProps = SearchProps | StoredSearchAddProps | StoredSearchListProps; export type OpointResponse = { response: Response; data: StoredSearchAddResponse | StoredSearchFeedResponse | StoredSearchListResponse | StoredSearchUpdateResponse | StoredSearchDeleteResponse; };