export type SharedContext = Readonly<{ concurrency: number; }>; export type Context = SharedContext & Readonly; export type ContextLike = Record; export type InternalOptionsContext = Context<{ dryRun: boolean; from: string | undefined; only: readonly string[]; skip: readonly string[]; tag: readonly string[]; until: string | undefined; }>; export type InternalContext = InternalOptionsContext & Readonly<{ secrets: readonly string[]; }>; export declare const getUserContext: (context: Readonly<{ concurrency: number; }> & Readonly & Readonly<{ dryRun: boolean; from: string | undefined; only: readonly string[]; skip: readonly string[]; tag: readonly string[]; until: string | undefined; }> & Readonly<{ secrets: readonly string[]; }>) => Context; /** Hold a mutable reference to some context to prevent destructuring it too early. */ export type ContextHolder = Readonly<{ add: (addedContext: Readonly) => void; addSecret: (secret: string) => void; copy: () => ContextHolder; get: () => Context & InternalContext; }>; export declare const createContextHolder: (initialContext: Readonly<{ concurrency: number; }> & Readonly & Readonly<{ dryRun: boolean; from: string | undefined; only: readonly string[]; skip: readonly string[]; tag: readonly string[]; until: string | undefined; }> & Readonly<{ secrets: readonly string[]; }>) => Readonly<{ add: (addedContext: Readonly) => void; addSecret: (secret: string) => void; copy: () => Readonly; get: () => Readonly<{ concurrency: number; }> & Readonly & Readonly<{ dryRun: boolean; from: string | undefined; only: readonly string[]; skip: readonly string[]; tag: readonly string[]; until: string | undefined; }> & Readonly<{ secrets: readonly string[]; }>; }>; export declare const hideSecrets: ({ secrets }: InternalContext, text: string) => string; //# sourceMappingURL=context.d.ts.map