import type { Except } from 'type-fest'; import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; type AppSigningSecretSys = Except & { appDefinition: SysLink; organization: SysLink; }; export type AppSigningSecretProps = { /** * System metadata */ sys: AppSigningSecretSys; /** The last four characters of the signing secret */ redactedValue: string; }; export type CreateAppSigningSecretProps = { /** A 64 character matching the regular expression /^[0-9a-zA-Z+/=_-]+$/ */ value: string; }; export interface AppSigningSecret extends AppSigningSecretProps, DefaultElements { /** * Deletes this object on the server. * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. * @example ```javascript * const contentful = require('contentful-management') * * const client = contentful.createClient({ * accessToken: '' * }) * client.getOrganization('') * .then((organization) => organization.getAppSigningSecret()) * .then((signingSecret) => signingSecret.delete()) * .then(() => console.log('signingSecret deleted')) * .catch(console.error) * ``` */ delete(): Promise; } /** * @private * @param http - HTTP client instance * @param data - Raw AppSigningSecret data * @return Wrapped AppSigningSecret data */ export declare function wrapAppSigningSecret(makeRequest: MakeRequest, data: AppSigningSecretProps): AppSigningSecret; export {};