import type { Except } from 'type-fest'; import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types'; type AppDetailsSys = Except & { appDefinition: SysLink; organization: SysLink; }; export type IconType = 'base64'; export interface AppIcon { value: string; type: IconType; } export type AppDetailsProps = { /** * System metadata */ sys: AppDetailsSys; /** * An Icon that represents the App */ icon?: AppIcon; }; export type CreateAppDetailsProps = { /** * An Icon that represents the App */ icon?: AppIcon; }; export interface AppDetails extends AppDetailsProps, 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.getAppDetails()) * .then((appDetails) => appDetails.delete()) * .then(() => console.log('appDetails deleted')) * .catch(console.error) * ``` */ delete(): Promise; } /** * @private * @param http - HTTP client instance * @param data - Raw AppDetails data * @return Wrapped AppDetails data */ export declare function wrapAppDetails(makeRequest: MakeRequest, data: AppDetailsProps): AppDetails; export {};