///
import { Http } from '@angular/http';
import 'rxjs';
export declare class Comment {
_id: string;
message: string;
name: string;
email: string;
parent_id: string;
replying: boolean;
unique_id: string;
upvotes: number;
downvotes: number;
constructor(_id: string, message: string, name: string, email: string, parent_id: string, replying: boolean, unique_id: string, upvotes: number, downvotes: number);
}
export declare class CommentService {
private http;
config: any;
constructor(http: Http);
getComments(): Promise;
getCommentsWithReplies(): Promise;
save(comment: Comment): Promise;
private post(comment);
private put(comment);
private handleError(error);
private apiUrl();
private commentsUrl();
clearComments(): any;
}