import type { StackEvent } from '@aws-sdk/client-cloudformation';
/**
 * Validate SNS topic arn
 */
export declare function validateSnsTopicArn(arn: string): boolean;
/**
 * Does a Stack Event have an error message based on the status.
 */
export declare function isErrorEvent(event: StackEvent): boolean;
/**
 * Is this a failure caused by CloudFormation cancelling the deployment?
 *
 * This happens because some other resource failed and CloudFormation decided to stop waiting for this one.
 *
 * Never returns true for the stack event itself, only for resource events.
 */
export declare function isCancellationEvent(event: StackEvent): boolean;
/**
 * Returns whether this event is about a regular resource (not the root stack and not a nested stack resource)
 */
export declare function isRegularResourceEvent(event: StackEvent): boolean;
/**
 * Returns whether this event is about the root stack itself.
 */
export declare function isRootStackEvent(event: StackEvent): boolean;
/**
 * Calculate the maximal length of all resource types for a given template.
 *
 * @param template - the stack template to analyze
 * @param startWidth - the initial width to start with. Defaults to the length of 'AWS::CloudFormation::Stack'.
 * @returns the determined width
 */
export declare function maxResourceTypeLength(template: any, startWidth?: number): number;
/**
 * Extract the stack name from a CloudFormation stack ARN.
 * If the input is already a stack name (not an ARN), returns it as-is.
 *
 * ARN format: arn:<partition>:cloudformation:<region>:<account>:stack/<stack-name>/<unique-id>
 */
export declare function stackNameFromArn(stackNameOrArn: string): string;
/**
 * Extract the change set name from a CloudFormation change set ARN.
 * If the input is already a change set name (not an ARN), returns it as-is.
 *
 * ARN format: arn:<partition>:cloudformation:<region>:<account>:changeSet/<changeset-name>/<unique-id>
 */
export declare function changeSetNameFromArn(changeSetNameOrArn: string): string;
//# sourceMappingURL=cloudformation.d.ts.map