export declare type TermNames = { category: string[]; post_tag: string; }; export declare type Article = { title: string; description: string; summary: string; link: string; origlink: string; permalink: string; date: Date; pubdate: Date; author: string; guid: string; comments: string; image: any; categories: string[]; source: any; enclosures: any[]; meta: any[]; timestamp: Date; feedCategories: string[]; }; export declare type Feed = { name: string; img_url: string; cats: string; tags: string; url: string; guid: any[]; authorID: number; wpAuthorId: number; wpThumbnail: number; type: string; feedStatus: string; priority: number; update_date: string; frequency: string; blocks: string; id: number; status: string; isAutopost: string; doTweets: boolean; hasFilter: boolean; filter: any; maxPerDay: number; lastUpdate: Date; lifePostCount: number; todayPostCount: number; lastPosted: Date; delay: number; linkText: string; comments: string; includeCategories: string[]; excludeCategories: string[]; featuredImageUrl: string; canRewriteHttps: string; }; export declare type FmePost = { date: Date; title: string; termNames: TermNames; categories: number[]; tags: number[]; content: string; excerpt: string; status: string; wpAuthor: string; wpAuthorId: number; author_display_name: string; author_img_url: string; html: string; version: string; customFields: any[]; likes: string; dislikes: string; up_voters: any[]; down_voters: any[]; clicks: Number; article: Article; source: {}; last_read: string; isPosted: Boolean; isAutoPost: Boolean; timestamp: Date; guid: string; priority: number; maxPerDay: number; pubdate: Date; pubAvailable: Date; linkText: string; feed: Feed; }; export interface WpConfig { name: string; username: string; password: string; endpoint: string; categories: number[]; tags: number[]; featured_media: number; } export declare enum WpStatus { publish = "publish", future = "future", draft = "draft", pending = "pending", private = "private" } export declare enum WpCommentStatus { open = "open", close = "closed" } export declare enum WpPingStatus { open = "open", close = "closed" } export declare enum WpFormat { standard = "standard", aside = "aside", chat = "chat", gallery = "gallery", link = "link", image = "image", quote = "quote", status = "status", video = "video", audio = "audio" } export interface WpImageOptions { title: string; caption: string; description: string; path: string; type: string; } export interface WpPost { date: Date; date_gmt: Date; slug: string; status: WpStatus; pasword: string; title: string; content: string; featured_media: number; comment_status: WpCommentStatus; ping_status: WpPingStatus; format: WpFormat; meta: any; sticky: boolean; template: string; categories: any[]; tags: any[]; } export declare class WordPress { wp: any; categories: any[]; tags: any[]; catCache: any[]; tagCache: any[]; constructor(config: WpConfig); init: () => Promise<{}>; createCategory: (name: string) => Promise<{}>; searchCategoryWp: (name: string) => Promise<{}>; getCategoryId: (name: string) => Promise<{}>; createTag: (name: string) => Promise<{}>; searchTagWp: (name: string) => Promise<{}>; getTagId: (name: string) => Promise<{}>; addFeaturedImage: (post: FmePost, imageUrl: string) => FmePost; findImageUrl: (fmePost: FmePost) => any; uploadImage: (options: WpImageOptions) => Promise; createPost: (post: WpPost) => Promise; }