/** @packageDocumentation ID3v2 ownership frame (OWNE). Records purchase and ownership information. */ import { ByteVector, StringType } from "../../../byteVector.js"; import { Id3v2Frame, Id3v2FrameHeader } from "../id3v2Frame.js"; /** * Ownership frame (OWNE). * * Structure: encoding(1) + pricePaid(null-terminated Latin1) * + datePurchased(8 bytes YYYYMMDD) + seller(in encoding). */ export declare class OwnershipFrame extends Id3v2Frame { /** Text encoding used for the seller field. */ private _encoding; /** Price paid for the item, stored as a null-terminated Latin1 string. */ private _pricePaid; /** Date of purchase as an 8-character YYYYMMDD string. */ private _datePurchased; /** Name or identifier of the seller. */ private _seller; /** * Creates a new, empty OWNE frame. * @param encoding - Text encoding to use for the seller field. Defaults to UTF-8. */ constructor(encoding?: StringType); /** Gets the text encoding used for the seller field. */ get encoding(): StringType; /** Sets the text encoding used for the seller field. */ set encoding(e: StringType); /** Gets the price paid for the item. */ get pricePaid(): string; /** Sets the price paid for the item. */ set pricePaid(value: string); /** Date purchased as YYYYMMDD string. */ get datePurchased(): string; set datePurchased(value: string); /** Gets the name or identifier of the seller. */ get seller(): string; /** Sets the name or identifier of the seller. */ set seller(value: string); /** * Returns a human-readable summary combining the seller, date, and price. * @returns A string of the form `" "`. */ toString(): string; /** @internal Create from raw frame data. */ static fromData(data: ByteVector, header: Id3v2FrameHeader, version: number): OwnershipFrame; /** * Parses the binary payload of the OWNE frame. * @param data - Raw field bytes beginning with the encoding byte. * @param _version - ID3v2 version (unused; parsing is version-independent). */ protected parseFields(data: ByteVector, _version: number): void; /** * Serialises the frame fields into a binary payload. * @param _version - ID3v2 version (unused; rendering is version-independent). * @returns A `ByteVector` containing the encoding byte, null-terminated price, 8-byte date, and seller string. */ protected renderFields(_version: number): ByteVector; } //# sourceMappingURL=ownershipFrame.d.ts.map