import * as Octokit from '@octokit/rest'; interface CommentlyArgs { /** The PR to comment on. Is detected in CI environments */ pr?: number; /** The owner fo the repo to comment on. Is detected in CI environments */ owner?: string; /** The repo to comment on. Is detected in CI environments */ repo?: string; /** The title at the top of the comment */ title?: string; /** The unique key to identify the comment by, not shown to end users */ key?: string; /** Key a history of the comments in the comment created by this library */ useHistory?: boolean; } /** Create a "commenter" that can comment on a pull request */ export default class Commently { readonly header: string; private user?; private readonly octokit; private readonly useHistory; private readonly owner; private readonly repo; private readonly title; private readonly key; private readonly issueId; private readonly footer; private readonly delim; private readonly debug; constructor(args: CommentlyArgs); /** * Comment the body param on the pull requests * * @param {string} body - the comment to post * @param {boolean} append - whether to append the comment to the last comment */ autoComment(body: string, append?: boolean): Promise>; private editKeyedComment; private editComment; private getKeyedComment; private getComments; private getUser; private createComment; private createKeyedComment; } export {};