import { LineType, LrcType, LrcSetType, NumberLiteral, WaraokeTalker, Meta, MetaSet, ParseOptions } from './def'; export declare type TimeStamp = number; export declare namespace TimeStamp { const extract: (x: TimeStamp) => number[]; const create: (mm: NumberLiteral, ss?: NumberLiteral, ff?: NumberLiteral) => TimeStamp; const from: (tag: string, exp?: RegExp) => TimeStamp; const qTag: (tag: string) => [TimeStamp, TimeStamp]; const toString: (x: TimeStamp, fix?: number) => string; } export interface TimeSegment { readonly start: TimeStamp; readonly end?: TimeStamp; } export declare type Phonetic = { notation: string; } & TimeSegment; export declare type Fragment = { readonly text: string; readonly sup?: Phonetic[]; } & TimeSegment; declare type LineContent = Fragment[]; export declare type Line = { readonly content: Readonly; comment?: Readonly[]; w_talker?: WaraokeTalker; } & TimeSegment; export declare class Lyric { private _meta; private _text; private _at; constructor(_meta?: MetaSet, _text?: Line[], _at?: MetaSet); get offset(): number; get meta(): Readonly; get lines(): readonly Line[]; get ats(): Readonly; append(line: Line): void; setMeta(k: string, v: Meta): void; setAtMark(k: string, v: Meta): void; set(k: string, v: Meta, s?: LrcSetType): void; remove(k: string): void; sort(): void; pan(): Lyric; align(offset?: number): Lyric; toLrc(type?: LrcType, blank?: boolean, ref?: boolean): string; } export declare const extractLine: (str: string) => [RegExpMatchArray, string]; export declare const extractMeta: (tag: string) => string[]; export declare const extractAtMark: (mark: string) => string[]; export declare const splitLine: (text: string, split: RegExp) => string[][]; export declare const lineType: (line: string) => LineType; export declare const parseQrcLine: (line: string, start: TimeStamp, end?: TimeStamp) => Array<{ text: string; } & TimeSegment>; export declare const parseQrcKana: (lyric: Lyric, kana?: string) => void; export declare const parseLrc: (lrc: string[], option?: Partial) => Lyric; export declare const parse: (lrc: string, option?: Partial) => Lyric; export {};