import { DataTypeConfig } from '@terascope/types'; import { FunctionContext, DynamicFunctionContext } from '../../function-configs/interfaces.js'; export interface FunctionAdapterOptions> { /** * Required with using the data field config */ readonly field?: string; readonly args?: T | ((index: number) => T); readonly config?: DataTypeConfig; readonly preserveNulls?: boolean; readonly preserveEmptyObjects?: boolean; } export interface RecordFunctionAdapterOperation { rows: (records: Record[]) => Record[]; } export interface FieldFunctionAdapterOperation extends RecordFunctionAdapterOperation { column(values: unknown[]): unknown[]; } export interface FunctionAdapterContext> extends FunctionContext { preserveNulls: boolean; preserveEmptyObjects: boolean; field?: string; } export interface DynamicFunctionAdapterContext> extends DynamicFunctionContext { preserveNulls: boolean; preserveEmptyObjects: boolean; field?: string; } //# sourceMappingURL=interfaces.d.ts.map