2021-12-18 13:55:31 +00:00
|
|
|
declare module 'browser-id3-writer' {
|
|
|
|
export default class ID3Writer {
|
|
|
|
constructor(buffer: Buffer | ArrayBuffer);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
setFrame(name: string, value: string | object | string[]);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
addTag(): Uint8Array;
|
|
|
|
}
|
2021-05-23 18:55:42 +00:00
|
|
|
}
|
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
declare module 'metaflac-js' {
|
|
|
|
export default class Metaflac {
|
|
|
|
constructor(buffer: Buffer);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
setTag(field: string);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
removeTag(name: string);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
importPictureFromBuffer(picture: Buffer);
|
2021-05-23 18:55:42 +00:00
|
|
|
|
2021-12-18 13:55:31 +00:00
|
|
|
save(): Buffer;
|
|
|
|
}
|
2021-05-23 18:55:42 +00:00
|
|
|
}
|