import { type SonamuQueryMode } from "../types/types"; type WithSimilarity = LP extends { semanticQuery: Record; } ? T & { similarity: number; } : T; export type ListResult = LP["queryMode"] extends "list" ? { rows: WithSimilarity[]; } : LP["queryMode"] extends "count" ? { total: number; } : { rows: WithSimilarity[]; total: number; }; export type ArrayOr = T | T[]; export declare function asArray(param: T | T[]): T[]; export declare function objToMap(obj: { [k: string]: T; }): Map | Map; export interface BaseListParams { id?: number | number[]; num?: number; page?: number; keyword?: string; queryMode?: "list" | "count" | "both"; semanticQuery?: Record; } export {}; //# sourceMappingURL=model.d.ts.map