#!/usr/bin/env node import * as cdk from "aws-cdk-lib"; import { BenchlingWebhookStack } from "../lib/benchling-webhook-stack"; import type { StackConfig } from "../lib/types/stack-config"; /** * Result of CDK bootstrap check */ export interface BootstrapStatus { bootstrapped: boolean; status?: string; message?: string; command?: string; warning?: string; } /** * Result of deployment */ export interface DeploymentResult { app: cdk.App; stack: BenchlingWebhookStack; stackName: string; stackId: string; } /** * Check if CDK is bootstrapped for the given account/region * Returns status object instead of exiting */ export declare function checkCdkBootstrap(account: string, region: string): Promise; /** * Create CDK app and stack (synthesis only, no deployment) * * v0.10.0: Clean library API - accepts minimal StackConfig interface * * This function is called directly by deploy.ts - no subprocess, no environment variables. * * @param config - Minimal stack configuration (transformed from ProfileConfig) * @param options - Deployment options (account, region, profile name) * @returns Deployment result with synthesized app and stack * * @example * ```typescript * import { createStack } from "@quiltdata/benchling-webhook"; * import { profileToStackConfig } from "./lib/utils/config-transform"; * * const profile = XDGConfig.readProfile("default"); * const stackConfig = profileToStackConfig(profile); * * const result = createStack(stackConfig, { * account: "123456789012", * region: "us-east-1", * profileName: "default" * }); * ``` */ export declare function createStack(config: StackConfig, options: { account: string; region: string; profileName: string; tags?: Record; }): DeploymentResult; //# sourceMappingURL=benchling-webhook.d.ts.map