import { CloudFormationExport, CloudFormationImport } from './types'; /** * CloudFormationContract: * * a contract used to define a type-safe import/export through CloudFormation. * * Main features: * - export and import generated and type-safe; * - generation of a contract document that can be checked for breaking changes; */ export declare class CloudFormationContract { contractType: "cloudFormation"; id: string; name: Name; /** * Builds a new ApiGateway contract * * @param id a unique id to identify the contract among stacks. Beware uniqueness! * @param name the name of the export * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html */ constructor({ id, name, }: { /** * A unique id to identify the contract among stacks. Beware uniqueness! */ id: string; /** * The name of the export. * * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html */ name: Name; }); /** * @returns the CloudFormation { Fn::ImportValue } function corresponding to the name */ get importValue(): CloudFormationImport; /** * @returns the CloudFormation import name to use with Fn.importValue in CDK */ get cdkImportValue(): Name; /** * @param description the description used in CloudFormation for this value * @param value the CloudFormation function passed to the export * For more information, see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html * @returns the CloudFormation Export function */ exportValue({ description, value, }: { description: string; value: Value; }): CloudFormationExport; } //# sourceMappingURL=cloudFormationContract.d.ts.map