import type { IStockReportingData } from '@msinternal/sp-component-utilities'; /** * The possible methods that can be used to fit the image. * * @beta */ export declare const ImageFit: { /** * The image is not scaled. The image is centered and cropped within the content box. */ readonly center: 0; /** * The image is scaled to maintain its aspect ratio while being fully contained within the frame. The image will * be centered horizontally and vertically within the frame. The space in the top and bottom or in the sides of * the frame will be empty depending on the difference in aspect ratio between the image and the frame. */ readonly contain: 1; /** * The image is scaled to maintain its aspect ratio while filling the frame. Portions of the image will be cropped * from the top and bottom, or the sides, depending on the difference in aspect ratio between the image and the frame. */ readonly cover: 2; /** * Neither the image nor the frame are scaled. If their sizes do not match, the image will either be cropped or the * frame will have empty space. */ readonly none: 3; /** * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will * behave as ImageFit.center if the image's natural height or width is less than the Image frame's height or width, * but if both natural height and width are larger than the frame it will behave as ImageFit.cover. */ readonly centerCover: 4; /** * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will * behave as ImageFit.center if the image's natural height and width is less than the Image frame's height and width, * but if either natural height or width are larger than the frame it will behave as ImageFit.contain. */ readonly centerContain: 5; }; /** * The possible methods that can be used to fit the image. * * @beta */ export type ImageFit = (typeof ImageFit)[keyof typeof ImageFit]; /** * Supported thumbnail image types. * * @beta */ export declare const ThumbnailType: { /** * Link to an image. */ readonly Image: 1; /** * Name of a supported icon. */ readonly FabricReactIcon: 2; /** * Link to an icon-sized image. */ readonly IconSizeImage: 3; }; /** * Supported thumbnail image types. * * @beta */ export type ThumbnailType = (typeof ThumbnailType)[keyof typeof ThumbnailType]; /** * Options related to image thumbnail. * * @beta */ export interface IThumbnailImage extends IStockReportingData { /** * Image type. */ type: typeof ThumbnailType.Image; /** * Alt text for the image. */ altText: string; /** * URL pointing to the image. */ imageUrl: string; /** * Optional backup image URL if the original image URL fails to load. */ backupImageUrl: string | undefined; /** * How the image should fit. */ imageFit: ImageFit | undefined; } /** * Options related to fabric icon thumbnail. * * @beta */ export interface IThumbnailFabricReactIcon { /** * Fabric icon type. */ type: typeof ThumbnailType.FabricReactIcon; /** * Alt text for the icon. */ altText: string; /** * The name of the icon to render. */ iconName: string; /** * The background color for the icon. */ iconColor?: string; } /** * Options related to icon sized image thumbnail. * * @beta */ export interface IThumbnailIconSizeImage { /** * Image type. */ type: typeof ThumbnailType.IconSizeImage; /** * Alt text for the image. */ altText: string; /** * URL pointing to the icon-size image. */ iconUrl: string; /** * Background color to use for the icon. */ iconColor?: string; } /** * The type of thumbnail image being configured. * * @beta */ export type IThumbnail = IThumbnailImage | IThumbnailFabricReactIcon | IThumbnailIconSizeImage; /** * Set of GUIDs representing a list item. * * @beta */ export interface IGuidSet { /** * Site ID */ siteId: string; /** * Web ID */ webId: string; /** * List ID */ listId: string; /** * Unique ID within the list */ uniqueId: string; } //# sourceMappingURL=PropertyPaneThumbnailPickerTypes.d.ts.map