import { PulumiCommand } from "../cmd"; export declare type BaseOptions = { cwd?: string; additionalEnv?: { [key: string]: string; }; onOutput?: (data: string) => void; onError?: (data: string) => void; signal?: AbortSignal; }; export declare class API { private _command; constructor(command: PulumiCommand); private __run; cancel(options: PulumiCancelOptions, stackName?: string): ReturnType; new(options: PulumiNewOptions, templateOrUrl?: string): ReturnType; orgGetDefault(options: PulumiOrgGetDefaultOptions): ReturnType; orgSearchAi(options: PulumiOrgSearchAiOptions): ReturnType; orgSearch(options: PulumiOrgSearchOptions): ReturnType; orgSetDefault(options: PulumiOrgSetDefaultOptions, name: string): ReturnType; org(options: PulumiOrgOptions): ReturnType; } /** Options for the `pulumi cancel` command. */ export interface PulumiCancelOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; /** The name of the stack to operate on. Defaults to the current stack */ stack?: string; } /** Options for the `pulumi new` command. */ export interface PulumiNewOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; /** Prompt to use for Pulumi AI */ ai?: string; /** Config to save */ config?: string[]; /** Config keys contain a path to a property in a map or list to set */ configPath?: boolean; /** The project description; if not specified, a prompt will request it */ description?: string; /** The location to place the generated project; if not specified, the current directory is used */ dir?: string; /** Forces content to be generated even if it would change existing files */ force?: boolean; /** Generate the project only; do not create a stack, save config, or install dependencies */ generateOnly?: boolean; /** Language to use for Pulumi AI (must be one of TypeScript, JavaScript, Python, Go, C#, Java, or YAML) */ language?: string; /** List locally installed templates and exit */ listTemplates?: boolean; /** The project name; if not specified, a prompt will request it */ name?: string; /** Use locally cached templates without making any network requests */ offline?: boolean; /** Store stack configuration remotely */ remoteStackConfig?: boolean; /** Additional options for the language runtime (format: key1=value1,key2=value2) */ runtimeOptions?: string[]; /** The type of the provider that should be used to encrypt and decrypt secrets (possible choices: default, passphrase, awskms, azurekeyvault, gcpkms, hashivault) */ secretsProvider?: string; /** The stack name; either an existing stack or stack to create; if not specified, a prompt will request it */ stack?: string; /** Run in template mode, which will skip prompting for AI or Template functionality */ templateMode?: boolean; } /** Options for the `pulumi org` command. */ export interface PulumiOrgOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; } /** Options for the `pulumi org get-default` command. */ export interface PulumiOrgGetDefaultOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; } /** Options for the `pulumi org search` command. */ export interface PulumiOrgSearchOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; /** Delimiter to use when rendering CSV output. */ delimiter?: string; /** Name of the organization to search. Defaults to the current user's default organization. */ org?: string; /** Output format. Supported formats are 'table', 'json', 'csv', and 'yaml'. */ output?: string; /** * A Pulumi Query to send to Pulumi Cloud for resource search.May be formatted as a single query, or multiple: * -q "type:aws:s3/bucketv2:BucketV2 modified:>=2023-09-01" * -q "type:aws:s3/bucketv2:BucketV2" -q "modified:>=2023-09-01" * See https://www.pulumi.com/docs/pulumi-cloud/insights/search/#query-syntax for syntax reference. */ query?: string[]; /** Open the search results in a web browser. */ web?: boolean; } /** Options for the `pulumi org search ai` command. */ export interface PulumiOrgSearchAiOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; /** Delimiter to use when rendering CSV output. */ delimiter?: string; /** Organization name to search within */ org?: string; /** Output format. Supported formats are 'table', 'json', 'csv' and 'yaml'. */ output?: string; /** Plaintext natural language query */ query?: string; /** Open the search results in a web browser. */ web?: boolean; } /** Options for the `pulumi org set-default` command. */ export interface PulumiOrgSetDefaultOptions extends BaseOptions { /** Colorize output. Choices are: always, never, raw, auto */ color?: string; /** Disable integrity checking of checkpoint files */ disableIntegrityChecking?: boolean; /** Show fully-qualified stack names */ fullyQualifyStackNames?: boolean; /** Flow log settings to child processes (like plugins) */ logflow?: boolean; /** Log to stderr instead of to files */ logtostderr?: boolean; /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */ memprofilerate?: number; /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */ otelTraces?: string; /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */ profiling?: string; /** Emit tracing to the specified endpoint. Use the `file:` scheme to write tracing data to a local file */ tracing?: string; /** Include the tracing header with the given contents. */ tracingHeader?: string; /** Enable verbose logging (e.g., v=3); anything >3 is very verbose */ verbose?: number; }