import { KeyOf, List } from "@mantlebee/ts-core"; import { ColumnRelationAbstract } from "../../models"; import { TableKey } from "../../types"; import { DateFromRelationColumnOptions, DateFromRelationColumnOptionsGetter, RelationDateFromCondition } from "./types"; /** * Generates a random date, starting from a value of a target row. * Use Case: every comment of a post, must have a creation date that follows the creation date of the post. * Similar to {@link DateColumn}, it is possible to restrict the range, * specifing a `to` option, to limit the right-range. */ export declare class DateFromRelationColumn extends ColumnRelationAbstract { protected readonly targetColumnName: KeyOf; protected readonly findTargetRow: RelationDateFromCondition; protected readonly getOptions?: DateFromRelationColumnOptionsGetter | undefined; /** * @param name Name of the column and of the field. * @param targetTableKey Target table's typed-key. * @param targetColumnName Target related row column name. * @param findTargetRow Delegate to find the target related row. * @param getOptions Column options getter. */ constructor(name: KeyOf, targetTableKey: TableKey, targetColumnName: KeyOf, findTargetRow: RelationDateFromCondition, getOptions?: DateFromRelationColumnOptionsGetter | undefined); setValues(sourceRows: List, targetRows: List): void; }