riz-sticker-maker
Version:
Sticker Creator for WhatsApp
44 lines (43 loc) โข 2.86 kB
TypeScript
import sharp, { Color } from 'sharp';
import { StickerTypes } from './internal/Metadata/StickerTypes';
/** Sticker metadata config */
export interface IStickerConfig {
/** Sticker Pack title*/
pack?: string;
/** Sticker Pack Author*/
author?: string;
/** Sticker Pack ID*/
id?: string;
/** Sticker Category*/
categories?: Categories[];
}
export interface IStickerOptions extends IStickerConfig {
/** How you want your sticker to look like
* Can be crop or full. Defaults to 'default' (no changes)
*/
type?: StickerTypes | string;
/**
* Quality of the output webp image. Must be an integer from 0 to 100 (defaults to 100
*/
quality?: sharp.WebpOptions['quality'];
/**
* Background Color of the sticker (only for type full)
*/
background?: Color;
}
export interface IRawMetadata {
emojis: string[];
'sticker-pack-id': string;
'sticker-pack-name': string;
'sticker-pack-publisher': string;
}
export declare type Metadata = IStickerConfig | IStickerOptions;
declare type Love = 'โค' | '๐' | '๐' | '๐' | '๐ป' | '๐' | '๐ฉโโคโ๐ฉ' | '๐จโโคโ๐จ' | '๐' | '๐ฉโโคโ๐โ๐ฉ' | '๐จโโคโ๐โ๐จ' | '๐งก' | '๐' | '๐' | '๐' | '๐' | '๐ค' | '๐' | 'โฃ' | '๐' | '๐' | '๐' | '๐' | '๐' | '๐' | '๐' | 'โฅ' | '๐' | '๐' | '๐ฉโโค๏ธโ๐โ๐ฉ' | '๐จโโค๏ธโ๐โ๐จ' | '๐ฉโโค๏ธโ๐จ' | '๐ฉโโค๏ธโ๐ฉ' | '๐จโโค๏ธโ๐จ' | '๐ฉโโค๏ธโ๐โ๐จ' | '๐ฌ' | '๐ญ' | '๐ซ' | '๐ฅฐ' | '๐' | '๐' | '๐' | '๐น' | '๐ฝ' | 'โฃ๏ธ' | 'โค๏ธ';
declare type Happy = '๐' | '๐' | '๐' | '๐' | '๐' | '๐
' | '๐' | '๐คฃ' | '๐' | '๐' | '๐' | '๐' | '๐คช' | '๐ค' | '๐บ' | '๐ธ' | '๐น' | 'โบ' | '๐' | '๐' | '๐ค' | '๐';
declare type Sad = 'โน' | '๐ฃ' | '๐' | '๐ซ' | '๐ฉ' | '๐ข' | '๐ญ' | '๐' | '๐' | '๐' | '๐' | '๐ค' | '๐ ' | '๐ฅ' | '๐ฐ' | '๐จ' | '๐ฟ' | '๐พ' | '๐' | '๐โโ' | '๐โโ' | '๐' | '๐' | '๐ฅบ' | '๐ค' | 'โ๏ธ' | 'โ' | '๐ฉ' | '๐ง';
declare type Angry = '๐ฏ' | '๐ฆ' | '๐ง' | '๐ฎ' | '๐ฒ' | '๐' | '๐ฑ' | '๐คฏ' | '๐ณ' | 'โ' | 'โ' | '๐คฌ' | '๐ก' | '๐ ' | '๐' | '๐ฟ' | '๐พ' | '๐ค' | '๐ข' | '๐บ' | '๐ฏ๏ธ' | '๐' | '๐ฅต';
declare type Greet = '๐';
declare type Celebrate = '๐' | '๐' | '๐' | '๐' | '๐ฏโโ๏ธ' | '๐ฏ' | '๐ฏโโ๏ธ' | '๐' | '๐บ' | '๐ฅ' | 'โญ๏ธ' | 'โจ' | '๐ซ' | '๐' | '๐' | '๐ป' | '๐ฅ' | '๐พ' | '๐' | '๐ฐ';
/** Sticker Category. Learn More: https://github.com/WhatsApp/stickers/wiki/Tag-your-stickers-with-Emojis*/
export declare type Categories = Love | Happy | Sad | Angry | Greet | Celebrate;
export {};