import type { ServiceScope } from '@microsoft/sp-core-library'; import type { IFilePickerData } from '@msinternal/sp-filepicker-interfaces'; import type { IGuidSet, IThumbnail } from '../../propertyPaneThumbnailPickerShared/PropertyPaneThumbnailPickerTypes'; /** * PropertyPaneThumbnailPicker component props * * @beta */ export interface IPropertyPaneThumbnailPickerProps extends Pick { /** * Service scope. */ serviceScope: ServiceScope; /** * Callback function for when an image has been selected. */ onItemChanged: (url: string, guidSet: IGuidSet | undefined) => void; /** * If an asset from the current site is selected, the URL can be returned as a relative URL. This option forces * the URL to be returned as an absolute URL. */ forceFullUrl?: boolean; /** * Thumbnail metadata of the currently selected thumbnail. */ thumbnail?: IThumbnail; /** * Optional name of consuming component for telemetry purposes. */ callerName?: string; /** * For the preview image, display with full width as opposed to the default fixed ratio. */ previewFullWidth?: boolean; /** * Whether to display a gray background when rendering an icon. */ previewGrayBackground?: boolean; /** * Optional CSS class name to apply to the wrapper of the thumbnail preview. */ thumbnailRendererWrapperClassName?: string; /** * Optional CSS class name to apply to the thumbnail preview when an icon is being rendered. */ thumbnailRendererIconClassName?: string; /** * Callback for when the Delete button is clicked. */ onItemDeleted?: () => void; /** * Optionally specify if the picker is disabled and cannot be changed. */ disabled?: boolean; } //# sourceMappingURL=IPropertyPaneThumbnailPicker.d.ts.map