import { SecretsManager } from 'aws-sdk'; export declare type ReadAwsSecretStringForStageOptions = { stage?: string; secretsManager?: SecretsManager; }; /** * Reads a secret from AWS Secrets Manager by its friendly name. * * The full secret name should follow the convention `stage/secretName`. * * The secret names passed to this function should not be prefixed * with the stage name. For example, if the stored secret name is * `production/github/accessToken`, the secret name passed to this * function should be just `github/accessToken`. * * The stage is automatically read from the `stage` option * or from `process.env.STAGE` and prepended to the secret name * before it's fetched. * * Note: this function only supports secrets stored as strings. It does not support * binary secrets. * * @param secretName The friendly name of the secret, i.e. `github/accessToken`, * without the stage prefix. */ export declare const readAwsSecretStringForStage: (secretName: string, { stage, secretsManager, }?: ReadAwsSecretStringForStageOptions) => Promise;