import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { GetSecretValueResponse, ListSecretInfoResponse, Secret, SecretCreatedEnvelope, SecretDeletedEnvelope, SecretUpdatedEnvelope } from './index.typings.js'; export { AccountInfo, ActionEvent, BaseEventMetadata, CreateSecretRequest, CreateSecretResponse, DeleteSecretRequest, DeleteSecretResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetSecretValueRequest, IdentificationData, IdentificationDataIdOneOf, ListSecretInfoRequest, MessageEnvelope, RestoreInfo, UpdateSecretRequest, UpdateSecretResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function getSecretValue$1(httpClient: HttpClient): GetSecretValueSignature; interface GetSecretValueSignature { /** * Retrieves a secret value by name. * *
* __Caution:__ * Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk. *
* @param - The name of the secret to get the value of. */ (name: string): Promise>; } declare function listSecretInfo$1(httpClient: HttpClient): ListSecretInfoSignature; interface ListSecretInfoSignature { /** * Retrieves a list of secrets. * * > **Note:** This method doesn't return the secret's value for security reasons. To retrieve the value, call [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value). */ (): Promise>; } declare function createSecret$1(httpClient: HttpClient): CreateSecretSignature; interface CreateSecretSignature { /** * Creates a secret. * @param - Fields of a new secret. * @returns Unique secret ID. */ (secret: NonNullablePaths): Promise; } declare function deleteSecret$1(httpClient: HttpClient): DeleteSecretSignature; interface DeleteSecretSignature { /** * Deletes a secret. * *
* Warning: * Deleting a secret is irreversible and will break all code using the secret. *
* @param - The unique ID of the secret to be deleted. */ (_id: string): Promise; } declare function updateSecret$1(httpClient: HttpClient): UpdateSecretSignature; interface UpdateSecretSignature { /** * Updates 1 or all fields of a secret. * * To get the secret ID, call [List Secret Info](https://dev.wix.com/docs/rest/business-management/secrets/list-secret-info). * @param - ID of the secret to update. * @param - Details of a secret. */ (_id: string, secret: Secret): Promise; } declare const onSecretCreated$1: EventDefinition; declare const onSecretDeleted$1: EventDefinition; declare const onSecretUpdated$1: EventDefinition; declare const getSecretValue: MaybeContext & typeof getSecretValue$1>; declare const listSecretInfo: MaybeContext & typeof listSecretInfo$1>; declare const createSecret: MaybeContext & typeof createSecret$1>; declare const deleteSecret: MaybeContext & typeof deleteSecret$1>; declare const updateSecret: MaybeContext & typeof updateSecret$1>; /** * Triggered when a secret is created. */ declare const onSecretCreated: BuildEventDefinition & typeof onSecretCreated$1; /** * Triggered when a secret is deleted. */ declare const onSecretDeleted: BuildEventDefinition & typeof onSecretDeleted$1; /** * Triggered when a secret is updated. */ declare const onSecretUpdated: BuildEventDefinition & typeof onSecretUpdated$1; export { GetSecretValueResponse, ListSecretInfoResponse, Secret, SecretCreatedEnvelope, SecretDeletedEnvelope, SecretUpdatedEnvelope, createSecret, deleteSecret, getSecretValue, listSecretInfo, onSecretCreated, onSecretDeleted, onSecretUpdated, updateSecret };