@dan-uni/dan-any
Version:
A danmaku transformer lib, supporting danmaku from different platforms.
15 lines (14 loc) • 518 B
TypeScript
import type { Context, Danmaku, SubtitleStyle } from '../types';
type compressType = 'brotli' | 'gzip';
type baseType = 'base64' | 'base18384';
export interface RawConfig {
compressType: compressType;
baseType: baseType;
}
export declare function raw(list: Danmaku[], config: SubtitleStyle, context: Context, compressType?: compressType, baseType?: baseType): string;
export declare function deRaw(ass: string): {
list: Danmaku[];
config: SubtitleStyle;
context: Context;
} | undefined;
export {};