import { Context } from "../../../main.js"; import TextStorage from "./text-storage.js"; export type TextParams = Partial<{ full_text_search: boolean; min_length: number; max_length: number; }>; /** A simple text field. Can support full text search and have a configurable min/max length. * * **All html-like chars are escaped, so none of them are interpreted as HTML**. * * Params: * - `full_text_search` - `Boolean` - whether or not the DB should create a full text search for this field * - `min_length` - `Number` - the text should have at least this many characters * - `max_length` - `Number` - the text shuld have at most this many characters */ export default class Text extends TextStorage { typeName: string; params: TextParams; getOpenApiSchema(context: Context): Promise>; /** Depends on the provided params * @internal */ hasIndex(): Promise; /** Checks if the input conforms with the constraints specified in the params * @internal */ isProperValue(context: Context, input: string): Promise; getPostgreSqlFieldDefinitions(): string[]; /** Sets the params @ignore */ constructor(params?: TextParams); }