import { Project } from 'projen'; import { GithubStepConfig, PipelineStep, StepSequence } from './step'; export interface GithubPackagesLoginStepOptions { /** * Whether or not to grant the step write permissions to the registry. * * @default false */ readonly write?: boolean; } /** * Step to set the GITHUB_TOKEN environment variable from a secret. * * Only supported for GitHub as it is GitHub specific. */ export declare class GithubPackagesLoginStep extends PipelineStep { private options; constructor(project: Project, options: GithubPackagesLoginStepOptions); toGithub(): GithubStepConfig; } export interface NpmSecretStepOptions { /** * Name of the secret to set for the environment variable NPM_TOKEN. * * @default 'NPM_TOKEN' */ readonly secretName?: string; } /** * Step to set the NPM_TOKEN environment variable from a secret. * * Currently only supported and needed for GitHub. * Gitlab sets the NPM_TOKEN environment variable automatically from the project's settings. */ export declare class NpmSecretStep extends PipelineStep { private options; constructor(project: Project, options: NpmSecretStepOptions); toGithub(): GithubStepConfig; } /** * Options for the CodeArtifactLoginStep. */ export interface CodeArtifactLoginStepOptions { readonly ownerAccount: string; readonly region: string; readonly domainName: string; readonly role: string; /** * The environment variable name to set. * * @default 'CODEARTIFACT_AUTH_TOKEN' */ readonly envVariableName?: string; } /** * Step to login to CodeArtifact. * * The environment variable name can be configured to avoid conflicts with other environment variables. * The default is CODEARTIFACT_AUTH_TOKEN. */ export declare class CodeArtifactLoginStep extends StepSequence { protected options: CodeArtifactLoginStepOptions; constructor(project: Project, options: CodeArtifactLoginStepOptions); }