import { d as GithubToolPreset, h as GithubToolName, n as GithubToolsBaseOptions } from "./tool-types-BsfalcyC.mjs"; import { r as EveGithubToolsOptions } from "./types-BKXTeCqT.mjs"; import { ConnectOptions, ConnectTokenParams } from "@vercel/connect"; //#region src/connect/connector.d.ts /** * A Vercel Connect connector name, or a resolver that returns one. * * Use a function to pick the connector dynamically — e.g. a different * connector per environment (`production` vs. `preview`) or per tenant. * It's resolved lazily, on every token request, alongside the token itself. */ type GithubConnectorInput = string | (() => string | Promise); /** Resolves a {@link GithubConnectorInput} to a connector name string. */ declare function resolveGithubConnector(connector: GithubConnectorInput): Promise; //#endregion //#region src/connect/types.d.ts /** * Token parameters for Vercel Connect GitHub connectors. * `subject` defaults to `{ type: 'app' }` — the project's GitHub App * installation, same as `connectGitHubAdapter`. */ type GithubConnectParams = Omit & { /** * Connect token subject. Defaults to `{ type: 'app' }` (the project's GitHub * App installation — one identity shared by every caller). Pass * `{ type: 'user', id }` to mint a token for that user's own GitHub * connection instead, e.g. in multi-user apps where each user connects * their account from an integrations panel. */ subject?: ConnectTokenParams['subject']; /** Restrict the token to specific repositories via GitHub authorization details. */ repositories?: string[]; }; type ConnectGithubToolsOptions = GithubToolsBaseOptions & { preset?: GithubToolPreset | GithubToolPreset[]; connect?: GithubConnectParams; }; type ConnectGithubEveToolsOptions = Omit & { connect?: GithubConnectParams; }; type ConnectGithubTokenOptions = { preset?: GithubToolPreset | GithubToolPreset[]; /** Same allow-list semantics as eve `include` — scopes derive from the resolved tools when set. */ include?: readonly GithubToolName[]; /** Same deny-list semantics as eve `exclude` — scopes derive from the resolved tools when set. */ exclude?: readonly GithubToolName[]; params?: GithubConnectParams; connectOptions?: ConnectOptions; }; //#endregion export { GithubConnectorInput as a, GithubConnectParams as i, ConnectGithubTokenOptions as n, resolveGithubConnector as o, ConnectGithubToolsOptions as r, ConnectGithubEveToolsOptions as t }; //# sourceMappingURL=types-ve9shBaf.d.mts.map