import type { ServiceScope } from '@microsoft/sp-core-library'; import type { IFilePickerData } from '@msinternal/sp-filepicker-interfaces'; import type { IStockReportingData } from '@msinternal/sp-component-utilities'; import type { IGuidSet, IThumbnail } from '../../../propertyPaneThumbnailPickerShared/PropertyPaneThumbnailPickerTypes'; export interface IThumbnailPickerPreviewProps extends Pick { /** * Service scope to initialize file picker. */ serviceScope: ServiceScope; /** * Callback which is triggered when image is updated complete. */ onItemChanged: (url: string, guidSet: IGuidSet | undefined, stockReportingData?: IStockReportingData) => void; /** * The thumbnail info being rendered. */ thumbnail: IThumbnail | undefined; /** * Name of consuming feature. */ callerName: string; /** * Whether to render the preview in full width as opposed to a square */ previewFullWidth?: boolean; /** * Whether to render the preview with a gray background */ previewGrayBackground?: boolean; /** * CSS class name to apply to the wrapper for the thumbnail renderer */ thumbnailRendererWrapperClassName?: string; /** * CSS class name to apply to the icon in the thumbnail renderer */ thumbnailRendererIconClassName?: string; /** * Callback which is triggered when delete image button is clicked. */ onItemDeleted?: () => void; /** * Optional, if specified the thumbnail picker will be disabled. */ disabled?: boolean; } //# sourceMappingURL=IThumbnailPickerPreviewProps.d.ts.map