import { Plugin } from "@webiny/plugins"; import type { DynamoDBTypes } from "../../toolbox.js"; export type FieldType = DynamoDBTypes & "date" & any; export interface TransformValueCb { (value: any): any; } export interface FieldPluginParams { /** * Default is string. */ type?: FieldType; field: string; path?: string; /** * Default is true. */ sortable?: boolean; transformValue?: TransformValueCb; } export declare abstract class FieldPlugin extends Plugin { private readonly path?; private readonly field; private readonly fieldType; private readonly dynamoDbType; private readonly sortable; private readonly _transformValue; constructor(params: FieldPluginParams); getPath(): string; getType(): FieldType; getField(): string; getDynamoDbType(): string; transformValue(value: any): any; isSortable(): boolean; }