import type { Attributes, Model, ModelStatic, NormalizedAttributeOptions, WhereOptions } from '..'; export type FinderOptions = { attributes?: string[]; where?: WhereOptions; }; export type MappedFinderOptions = Omit, 'attributes'> & { attributes?: Array<[columnName: string, attributeName: string] | string>; }; /** * Expand and normalize finder options. * Mutates the "options" parameter. * * @param options * @param Model */ export declare function mapFinderOptions>>(options: T, Model: ModelStatic): MappedFinderOptions>; /** * Used to map field names in attributes * * Mutates the "options" parameter. * * ⚠️ This function does not map the "where" or "having" options, this is handled by QueryGenerator's WHERE generation. * * @param options * @param Model */ export declare function mapOptionFieldNames(options: FinderOptions>, Model: ModelStatic): MappedFinderOptions>; /** * Used to map field names in values * * @param dataValues * @param attributeNames * @param ModelClass */ export declare function mapValueFieldNames(// TODO: rename to mapAttributesToColumNames? See https://github.com/sequelize/meetings/issues/17 dataValues: Record, attributeNames: Iterable, ModelClass: ModelStatic): Record; /** * Removes entries from `hash` whose value is either null or undefined, unless `omitNull` is false or `allowNull` includes that key. * * Keys ending with 'Id' are never removed. * * @param hash the object from which entries with nullish values will be removed. * @param omitNull if false, this method returns the object as-is * @param options * @param options.allowNull A list of keys that must be preserved even if their value is null or undefined. */ export declare function removeNullishValuesFromHash(hash: Record, omitNull: boolean, options?: { allowNull?: string[]; }): Record; export declare function getColumnName(attribute: NormalizedAttributeOptions): string; export declare function getAttributeName(model: ModelStatic, columnName: string): string | null; //# sourceMappingURL=format.d.ts.map