import * as OAuthMethods from "@octokit/oauth-methods"; import type { ClientType, State } from "../types.js"; export type CheckTokenOptions = { token: string; }; export declare function checkTokenWithState(state: State, options: CheckTokenOptions): Promise; export interface CheckTokenInterface { (options: CheckTokenOptions): (TClientType extends "oauth-app" ? Promise : Promise) & { authentication: { type: "token"; tokenType: "oauth"; }; }; }