import Sid from './sanitised-identifier.js'; export type Identifier = string | Sid | (Sid | string)[]; /** @returns `true` if provided string can be used as identifier without quoting, `false` otherwise. */ export declare function isPlain(value: string): boolean; /** @returns `[]`-quoted string. */ export declare function quote(value: unknown): string; /** * @returns sanitised identifier. * * Already sanitised identifiers are returned as is. * * String including `->` is returned as JSON_VALUE(LHS, RHS). * * String including `~>` is returned as JSON_QUERY(LHS, RHS?). * * `.`-separated string is split and joined. * * String including `?>` is returned as JSON_PATH_EXISTS(LHS, RHS). * * Strings are quoted if not plain. Non plain string is MSSQL keyword or string containing special characters. * * Above rules are recursive with precedence as listed. */ export declare function identifier(value: Identifier): Sid; /** @returns JSON_VALUE(C) built-in function call. */ export declare function jsonValue(column: Sid | string, query: string): Sid; /** @returns JSON_QUERY(C, Q?) built-in function call. */ export declare function jsonQuery(column: Sid | string, query?: undefined | null | string): Sid; /** @returns JSON_PATH_EXISTS(C, Q) built-in function call. */ export declare function jsonPathExists(column: Sid | string, query: string): Sid; export default identifier;