import { IGrantable } from 'aws-cdk-lib/aws-iam'; import { ISecret, Secret } from 'aws-cdk-lib/aws-secretsmanager'; import { SecretValue } from 'aws-cdk-lib'; import { DotStack } from '../constructs/Stack'; export { ISecret, Secret, SecretValue }; interface AddSecretOptions { consumers?: IGrantable[]; name: string; scope: DotStack; secretName: string; value?: string; } interface GrantRemoteOptions { consumers: IGrantable[]; scope: DotStack; secretName: string; } type SecretArn = string; export declare const addSecret: (options: AddSecretOptions) => { secret: Secret; }; export declare const getRemoteSecretValue: (secretName: string, scope: DotStack) => string; export declare const grantRemoteSecret: ({ consumers, secretName, scope }: GrantRemoteOptions) => SecretArn; export declare const secretExists: (name: string) => Promise;