import { Octokit } from '@octokit/rest';
import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types';
import type { PaginateInterface } from '@octokit/plugin-paginate-rest/dist-types/types';
import type { paginateGraphQLInterface } from '@octokit/plugin-paginate-graphql/dist-types/index.js';
export declare const generateGithubAppToken: (config: any) => Promise<string>;
export declare function getGithubAppToken(org: string, genGithubAppToken?: any): Promise<string>;
type ExtendedOctokit = Octokit & Api & {
    paginate: PaginateInterface;
} & paginateGraphQLInterface;
export { ExtendedOctokit };
export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
export declare function getOctokitFromPat(envVar: string): Promise<ExtendedOctokit>;
declare const _default: {
    getOctokitForOrg: typeof getOctokitForOrg;
};
export default _default;
