// Generated by dts-bundle-generator v9.5.1 type ReadableStreamType$1 = "bytes"; declare class IntoUnderlyingByteSource { private constructor(); free(): void; [Symbol.dispose](): void; start(controller: ReadableByteStreamController): void; pull(controller: ReadableByteStreamController): Promise; cancel(): void; readonly type: ReadableStreamType$1; readonly autoAllocateChunkSize: number; } declare class IntoUnderlyingSink { private constructor(); free(): void; [Symbol.dispose](): void; write(chunk: any): Promise; close(): Promise; abort(reason: any): Promise; } declare class IntoUnderlyingSource { private constructor(); free(): void; [Symbol.dispose](): void; pull(controller: ReadableStreamDefaultController): Promise; cancel(): void; } export class Value { private constructor(); free(): void; [Symbol.dispose](): void; /** * Create a new SurrealQL value * * ```js * const value = Value.from_string("{ test: true }"); * ``` */ static from_string(val: string): Value; /** * Create a new SurrealQL value from a JSON string * Errors when it encounters non-json values * * ```js * const value = Value.from_json_string("{ test: true }"); * ``` */ static from_json_string(val: string): Value; /** * Create a new SurrealQL value * * ```js * const value = Value.from_json({ test: true }); * ``` */ static from_json(val: any): Value; /** * Create a new SurrealQL value * * ```js * const value = Value.from_cbor(); * ``` */ static from_cbor(val: Uint8Array): Value; /** * Format a SurrealQL value * * ```js * const value = Value.from_json({ test: true }); * const output = value.format(true); */ format(pretty: boolean): string; /** * Format a SurrealQL value into JSON * * ```js * const value = Value.from_json({ test: true }); * const output = value.json(true); */ json(pretty: boolean): string; /** * Return a parsed SurrealQL value as CBOR * * ```js * const value = Value.from_string("{ test: true }"); * const output = value.to_cbor(); */ to_cbor(): Uint8Array; } declare function extract_tables_from_kind(kind_sql: string): string[]; declare function format(sql: string, pretty: boolean): string; declare function setup(): void; declare function validate(sql: string): void; declare namespace SurrealQL { export { IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, ReadableStreamType$1 as ReadableStreamType, Value, extract_tables_from_kind, format, setup, validate }; } declare namespace _default { export { IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, ReadableStreamType$1 as ReadableStreamType, Value, extract_tables_from_kind, format, setup, validate }; } export { SurrealQL, SurrealQL as default, }; export {};