import { Project, javascript } from 'projen'; import { TriageOptions } from '../components/triage/triage'; export declare const NAME_PREFIX = "cdk8s-"; export declare const SCOPE = "@cdk8s/"; /** * Subset of options that should be fixed for all cdk8s-team node projects. * These will not be available for customization by individual projects. */ export declare const fixedOptionsKeys: readonly ["authorName", "authorEmail", "repository", "autoApproveOptions", "autoApproveUpgrades", "releasableCommits", "workflowNodeVersion", "npmTrustedPublishing", "releaseEnvironment"]; export type fixedOptionsKeysType = typeof fixedOptionsKeys[number]; /** * Subset of options that have default values for all cdk8s-team node projects. * These will be available for customization by individual projects. */ export declare const defaultOptionsKeys: readonly ["releaseToNpm", "release", "minNodeVersion", "depsUpgradeOptions", "workflowNodeVersion"]; export type defaultOptionsKeysType = typeof defaultOptionsKeys[number]; /** * Create the fixed typescript project options. */ export declare function buildNodeProjectFixedOptions(options: Cdk8sTeamNodeProjectOptions): Pick; /** * Create the default typescript project options. */ export declare function buildNodeProjectDefaultOptions(options: Cdk8sTeamNodeProjectOptions): Pick; /** * Create the repository name based on the project name. */ export declare function buildRepositoryName(projectName: string): string; /** * Options for `Cdk8sTeamNodeProject`. */ export interface Cdk8sTeamNodeProjectOptions extends javascript.NodeProjectOptions { /** * The name of the repository inside the cdk8s-team * org where the code of the project is locate in. * * @default - the package name. */ readonly repoName?: string; /** Configure a backport workflow. * * @default false */ readonly backport?: boolean; /** * Branches to backport to. * * @default - Will be derived from PR labels. */ readonly backportBranches?: string[]; /** * Options for the `triage` workflow. * * @default - no custom options. */ readonly triageOptions?: TriageOptions; } /** * @pjid cdk8s-team-node-project */ export declare class Cdk8sTeamNodeProject extends javascript.NodeProject { constructor(options: Cdk8sTeamNodeProjectOptions); } /** * Validate that the options map does not contain any invalid option. * This would usually be implemented at compile time using Omit/Pick but jsii * doesn't allow this. */ export declare function validateOptions(options: any): void; /** * Validate the name of a project. */ export declare function validateProjectName(options: Cdk8sTeamNodeProjectOptions): void; /** * Options for `addComponents`. */ export interface CommonComponentsOptions { readonly branches?: string[]; readonly compilerDeps?: string[]; readonly triageOptions?: TriageOptions; } /** * Add common components to the project. */ export declare function addComponents(project: javascript.NodeProject, repoName: string, options: CommonComponentsOptions): void; export declare function limitReleaseConcurrency(project: Project): void; /** * Re-enable auto-merge when cdk8s-automation pushes to its non-draft upgrade pull requests. * projen only enables auto-merge when a pull request is opened, so a failed run or a merge * queue removal leaves auto-merge off. To hold an upgrade pull request, convert it to a draft. */ export declare function autoQueueAutomationPullRequestsOnPush(project: javascript.NodeProject): void;