import type { Component } from 'svelte'; export type ImageSettingsValue = { /** Node ID of the selected image. */ node?: string; /** Image alt text. */ alt: string; /** Whether the image is decorative. */ decorative: boolean; /** Whether to use custom alt text. */ useCustomAlt: boolean; }; export type Props = { /** Configuration key and HTML name prefix for the image fields. */ name?: string; /** Set the image selector as required. */ required?: boolean; /** Whether the image is preset as decorative. */ decorative?: boolean; /** Hides the checkbox for decorative images. */ hideDecorative?: boolean; /** Shows or hides the component without destroying its fields. */ show?: boolean; /** Use legacy naming app config keys, e.g., `imageNode` instead of `image.node`. */ legacyNames?: boolean; /** Image selection and alt text value. */ value?: ImageSettingsValue; /** Called on an image value change. */ onChange?: (value: ImageSettingsValue) => void | Promise; }; /** * Image selection and alt text settings. * See [Readme](https://docs.soleil.se/packages/config-svelte/components/imagesettings/). */ declare const ImageSettings: Component; export default ImageSettings;