import { Duration as Base } from "@tai-kun/surrealdb/decodeonly-datatypes";
import { CBOR_TAG_DURATION, type Encodable } from "./spec";
export type * from "../decode-only/duration";
/**
 * [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/duration)
 */
export default class Duration extends Base implements Encodable {
    parse(): {
        years?: number;
        weeks?: number;
        days?: number;
        hours?: number;
        minutes?: number;
        seconds?: number;
        milliseconds?: number;
        microseconds?: number;
        nanoseconds?: number;
    };
    valueOf(): bigint;
    toString(): string;
    [Symbol.toPrimitive](hint: "default" | "string"): string;
    [Symbol.toPrimitive](hint: "number"): number;
    [Symbol.toPrimitive](hint: string): string | number;
    toCBOR(): [
        tag: typeof CBOR_TAG_DURATION,
        value: [seconds: bigint, nanoseconds: number]
    ];
    toJSON(): string;
    toSurql(): string;
    toPlainObject(): {
        seconds: bigint;
        nanoseconds: number;
    };
}
//# sourceMappingURL=duration.d.ts.map