import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/observable/of'; import 'rxjs/add/observable/throw'; import { ModuleWithProviders, OpaqueToken } from '@angular/core'; import { RequestOptions, XHRBackend } from '@angular/http'; /** Services */ import { WpService } from './service/wp.service'; import { ConfigService } from './service/config/config.service'; /** directive */ import { CollectionDirective } from './directives/collection.directive'; import { ModelDirective } from './directives/model.directive'; /** helpers */ import { WpHttp } from './classes/wp-http.class'; import { WpPost } from './classes/wp-post.class'; import { WpUser } from './classes/wp-user.interface'; import { WpEndpoint } from './classes/wp-endpoints'; import { WpPagination } from './classes/wp-pagination.class'; import { CollectionResponse } from './service/collection/collection.interface'; import { ModelResponse } from './service/model/model.interface'; /** Provide ConfigService parameters providers */ export declare const URL: OpaqueToken; export declare const PHOTON: OpaqueToken; export declare const DEBUG: OpaqueToken; /** Initialize ConfigService with URL */ export declare function wpConfigFactory(url: string, photon: any, debug: boolean): ConfigService; /** Initialize WpHttp with ConfigService */ export declare function wpHttpFactory(backend: XHRBackend, defaultOptions: RequestOptions, config: ConfigService): WpHttp; export declare class WordPressModule { static forRoot(url: string, photon?: any, debug?: boolean): ModuleWithProviders; } export { WpService, CollectionDirective, ModelDirective, WpPost, WpUser, WpEndpoint, WpPagination, CollectionResponse, ModelResponse };