@lottiefiles/relottie-metadata
Version:
relottie plugin to extract Lottie metadata
29 lines (25 loc) • 809 B
TypeScript
import { filesize } from 'filesize';
/**
* Copyright 2023 Design Barn Inc.
*/
declare type FileSizeOptions = Parameters<typeof filesize>[1];
interface MetadataOption {
/**
* File size options
*/
fileSize: {
/**
* Enable fileSize calculation (default: true)
*/
enable: boolean;
/**
* If 'fileSize.enabled' is enabled you can control the fileSize options,
* reference: https://github.com/avoidwork/filesize.js
*/
options: FileSizeOptions;
};
}
declare type Options = Partial<MetadataOption>;
declare const DEFAULT_FILESIZE_OPTIONS: FileSizeOptions;
declare const DEFAULT_OPTIONS: MetadataOption;
export { DEFAULT_FILESIZE_OPTIONS, DEFAULT_OPTIONS, type FileSizeOptions, type MetadataOption, type Options };