import type { Endpoints, RequestInterface } from "@octokit/types"; import type { OAuthAppAuthentication, GitHubAppAuthenticationWithExpirationEnabled, GitHubAppAuthenticationWithExpirationDisabled } from "./types"; export type ResetTokenOAuthAppOptions = { clientType: "oauth-app"; clientId: string; clientSecret: string; token: string; request?: RequestInterface; }; export type ResetTokenGitHubAppOptions = { clientType: "github-app"; clientId: string; clientSecret: string; token: string; request?: RequestInterface; }; export type ResetTokenOAuthAppResponse = Endpoints["PATCH /applications/{client_id}/token"]["response"] & { authentication: OAuthAppAuthentication; }; export type ResetTokenGitHubAppResponse = Endpoints["PATCH /applications/{client_id}/token"]["response"] & { authentication: GitHubAppAuthenticationWithExpirationEnabled | GitHubAppAuthenticationWithExpirationDisabled; }; export declare function resetToken(options: ResetTokenOAuthAppOptions): Promise; export declare function resetToken(options: ResetTokenGitHubAppOptions): Promise;