import { type Throws } from '@livekit/throws-transformer/throws'; import { LivekitReasonedError } from '../errors'; export declare enum DataTrackHandleErrorReason { Reserved = 0, TooLarge = 1 } export declare class DataTrackHandleError extends LivekitReasonedError { readonly name = "DataTrackHandleError"; reason: Reason; reasonName: string; constructor(message: string, reason: Reason); isReason(reason: R): this is DataTrackHandleError; static tooLarge(): DataTrackHandleError; static reserved(value: number): DataTrackHandleError; } export type DataTrackHandle = number; export declare const DataTrackHandle: { fromNumber(raw: number): Throws; }; /** Manage allocating new handles which don't conflict over the lifetime of the client. */ export declare class DataTrackHandleAllocator { value: number; /** Returns a unique track handle for the next publication, if one can be obtained. */ get(): DataTrackHandle | null; } //# sourceMappingURL=handle.d.ts.map