import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
import type { ColumnBaseConfig } from "../../column.js";
import { entityKind } from "../../entity.js";
import { type Equal } from "../../utils.js";
import { CockroachColumn, CockroachColumnWithArrayBuilder } from "./common.js";
export type CockroachGeometryBuilderInitial<TName extends string> = CockroachGeometryBuilder<{
    name: TName;
    dataType: 'array';
    columnType: 'CockroachGeometry';
    data: [number, number];
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachGeometryBuilder<T extends ColumnBuilderBaseConfig<'array', 'CockroachGeometry'>> extends CockroachColumnWithArrayBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class CockroachGeometry<T extends ColumnBaseConfig<'array', 'CockroachGeometry'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    getSQLType(): string;
    mapFromDriverValue(value: string): [number, number];
    mapToDriverValue(value: [number, number]): string;
}
export type CockroachGeometryObjectBuilderInitial<TName extends string> = CockroachGeometryObjectBuilder<{
    name: TName;
    dataType: 'json';
    columnType: 'CockroachGeometryObject';
    data: {
        x: number;
        y: number;
    };
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachGeometryObjectBuilder<T extends ColumnBuilderBaseConfig<'json', 'CockroachGeometryObject'>> extends CockroachColumnWithArrayBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class CockroachGeometryObject<T extends ColumnBaseConfig<'json', 'CockroachGeometryObject'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    getSQLType(): string;
    mapFromDriverValue(value: string): {
        x: number;
        y: number;
    };
    mapToDriverValue(value: {
        x: number;
        y: number;
    }): string;
}
export interface CockroachGeometryConfig<T extends 'tuple' | 'xy' = 'tuple' | 'xy'> {
    mode?: T;
    type?: 'point' | (string & {});
    srid?: number;
}
export declare function geometry(): CockroachGeometryBuilderInitial<''>;
export declare function geometry<TMode extends CockroachGeometryConfig['mode'] & {}>(config?: CockroachGeometryConfig<TMode>): Equal<TMode, 'xy'> extends true ? CockroachGeometryObjectBuilderInitial<''> : CockroachGeometryBuilderInitial<''>;
export declare function geometry<TName extends string, TMode extends CockroachGeometryConfig['mode'] & {}>(name: TName, config?: CockroachGeometryConfig<TMode>): Equal<TMode, 'xy'> extends true ? CockroachGeometryObjectBuilderInitial<TName> : CockroachGeometryBuilderInitial<TName>;
