import { Field, Context } from "../../../main.js"; import { OpenApiTypes } from "../../../schemas/open-api-types.js"; import { TextValue } from "./text-value.js"; type LegacyTextStorageFormat = { original: string; safe: string; }; type TextStorageFormat = string | LegacyTextStorageFormat; export default abstract class TextStorage extends Field { open_api_type: OpenApiTypes; encode(context: Context, input: string | { toString(): string; } | null): Promise; private makeTextQuery; getMatchQueryValue(_context: Context, filter_value: string | { regex: string | RegExp; } | string[]): Promise; getMatchQuery(context: Context, filter: any): Promise; getAggregationStages(context: Context, filter_value: string | { regex: string | RegExp; } | string[]): Promise<{ $match: any; }[]>; decode(context: Context, db_value: TextStorageFormat | null | undefined, __: any, _is_http_api_request?: boolean): Promise; } export {};