/** * Interface that represents the optional sticker attributes. */ export interface StickerParams { /** * The width of the sticker. */ width?: number; /** * The height of the sticker. */ height?: number; /** * The x-coordinate position of the sticker. */ posX?: number; /** * The rotation (degrees in clockwise direction) to apply on the sticker. */ posY?: number; /** * The degrees to rotate the sticker clockwise direction. */ rotationDegreesInClockwise?: number; /** * Enables animation for the sticker (iOS only). */ isAnimated?: boolean; } /** * Base interface that represents the structure of params for each share type. */ export interface MetadataParams { /** * Optional sticker to attach to content. */ sticker?: ImageData & StickerParams; /** * Optional caption to attach to content. */ caption?: string; /** * Optional URL to attach to content. */ attachmentUrl?: string; } /** * Type that represents the two supported image formats: raw (base64) and URI. */ export declare type ImageData = { raw: string; } | { uri: string; }; /** * Interface that represents params needed for photo content. */ export interface PhotoContentParams extends MetadataParams { /** * The image data to be shared. */ content: ImageData; } /** * Type that represents the supported video format: URI. */ export interface VideoData { uri: string; } /** * Interface that represents params needed for video content. */ export interface VideoContentParams extends MetadataParams { /** * The video data to be shared. */ content: VideoData; } /** * Interface that represents params needed for lens content. */ interface LensContentParams { /** * The UUID of the lens to be shared. */ lensUUID: string; /** * Optional key-value pairs of additional launch data to attach to lens. */ launchData?: Record; /** * Optional caption to attach to content. */ caption?: string; /** * Optional URL to attach to content. */ attachmentUrl?: string; } export declare type CreativeKitType = { /** * Shares a still image content to Snapchat preview. * *
     *   CreativeKit.sharePhoto({
     *    content: {
     *      // add photo data
     *    },
     *    sticker: {
     *      // optional sticker data
     *    },
     *    attachmentUrl: "",
     *    caption: ""
     *   });
     * 
* */ sharePhoto(photoContent: PhotoContentParams): Promise; /** * Shares a video content to Snapchat preview. * *
     *   CreativeKit.shareVideo({
     *    content: {
     *      // add video data
     *    },
     *    sticker: {
     *      // optional sticker data
     *    },
     *    attachmentUrl: "",
     *    caption: ""
     *   });
     * 
* */ shareVideo(videoContent: VideoContentParams): Promise; /** * Opens SnapChat camera with optional metadata. * *
     *   CreativeKit.shareToCameraPreview({
     *    sticker: {
     *      // optional sticker data
     *    },
     *    attachmentUrl: "",
     *    caption: ""
     *   });
     * 
* */ shareToCameraPreview(metadata?: MetadataParams): Promise; /** * Shares a lens attachment to Snapchat camera. * *
     *   CreativeKit.shareLensToCameraPreview({
     *    lensUUID: "",
     *    launchData: {
     *      // additional key-value attributes for the lens
     *    }
     *    attachmentUrl: "",
     *    caption: ""
     *   });
     * 
* */ shareLensToCameraPreview(lensContent: LensContentParams): Promise; }; declare const CreativeKit: CreativeKitType; export { CreativeKit };