export interface BSONSymbolExtended { $symbol: string;}
export class BSONSymbol { _bsontype = "Symbol"; value!: string; constructor(value: string) { this.value = value; }
valueOf(): string { return this.value; }
toString(): string { return this.value; }
toJSON(): string { return this.value; }
toExtendedJSON(): BSONSymbolExtended { return { $symbol: this.value }; }
static fromExtendedJSON(doc: BSONSymbolExtended): BSONSymbol { return new BSONSymbol(doc.$symbol); }
[Symbol.for("Deno.customInspect")](): string { return `new BSONSymbol("${this.value}")`; }}