UNPKG

m3u8parse

Version:

Structural parsing of Apple HTTP Live Streaming .m3u8 format

18 lines (17 loc) 763 B
import { Attr, Byterange, Resolution } from './attr-types.ts'; declare const deserialize: { bigint(stringValue: string): bigint; hexint(stringValue: string): bigint; int(stringValue: string): number; hexno(stringValue: string): number; float(stringValue: string): number; "signed-float"(stringValue: string): number; string(stringValue: string): string; enum(stringValue: string): string; list(stringValue: string): string[]; resolution(stringValue: string): Resolution | undefined; byterange(stringValue: string): Byterange | undefined; }; type MustExtend<T, E> = T extends E ? T : never; declare const _default: MustExtend<typeof deserialize, Record<Attr, (stringValue: string) => unknown>>; export default _default;