/** * Copyright 2015 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export declare class Box { offset: number; size: number; boxtype: string; userType: Uint8Array; constructor(boxtype: string, extendedType?: Uint8Array); /** offset Position where writing will start in the output array {number} Size of the written data */ layout(offset: number): number; /** data Output array {number} Amount of written bytes by this Box and its children only. */ write(data: Uint8Array): number; toUint8Array(): Uint8Array; } export declare class BoxContainerBox extends Box { children: Box[]; constructor(type: string, children: Box[]); layout(offset: number): number; write(data: Uint8Array): number; } export declare class FullBox extends Box { version: number; flags: number; constructor(boxtype: string, version?: number, flags?: number); layout(offset: number): number; write(data: Uint8Array): number; } export declare class RawTag extends Box { data: Uint8Array; constructor(type: string, data: Uint8Array); layout(offset: number): number; write(data: Uint8Array): number; }