import Field from "../../../chip-types/field.js"; import { CollectionItem, type App, type Context } from "../../../main.js"; import { OpenApiTypes } from "../../../schemas/open-api-types.js"; import type { ExtractTail } from "../../../utils/extract-tail.js"; export default class ValueExistingInCollection extends Field { typeName: string; target_field_name: string; target_collection_name: string; include_forbidden: boolean; open_api_type: OpenApiTypes; constructor(params: { field: string; collection: string; include_forbidden: boolean; }); isProperValue(context: Context, new_value: unknown, old_value: unknown, _blessing: unknown, item: CollectionItem | undefined): Promise; getField(app: App): Field | undefined; encode(context: Context, ...args: ExtractTail["encode"]>>): Promise; decode(context: Context, ...args: ExtractTail["decode"]>>): Promise; getMatchQueryValue(context: Context, ...args: ExtractTail["getMatchQueryValue"]>>): Promise; getAggregationStages(context: Context, ...args: ExtractTail["getMatchQueryValue"]>>): Promise[]>; getPostgreSqlFieldDefinitions(): string[]; }