import { DocumentConventions } from "../Documents/Conventions/DocumentConventions.js"; import { MetadataObject } from "../Documents/Session/MetadataObject.js"; import { CompareExchangeResultItem } from "../Documents/Operations/CompareExchange/CompareExchangeValueResultParser.js"; import { ServerCasing, ServerResponse } from "../Types/index.js"; import { TimeSeriesRangeResult } from "../Documents/Operations/TimeSeries/TimeSeriesRangeResult.js"; import { CounterDetail } from "../Documents/Operations/Counters/CounterDetail.js"; import { AttachmentDetails } from "../Documents/Attachments/index.js"; export declare class ObjectUtil { static camelCase: (input: string, locale?: string) => string; static camel: (input: string, locale?: string) => string; static pascalCase: (input: string, locale?: string) => string; static pascal: (input: string, locale?: string) => string; /** * @deprecated Use deepJsonClone or deepLiteralClone for better performance * @param o Object to clone */ static clone(o: any): any; static deepJsonClone(o: any): any; static deepLiteralClone(item: any): any; static mapToLiteral(input: Map): { [key: string]: TValue; }; static mapToLiteral(input: Map, valueTransformFunc: (value: string, key: TValue) => TResult): { [key: string]: TResult; }; static transformObjectKeys(obj: object, opts?: ObjectChangeCaseOptions): object; static transformDocumentKeys(obj: any, conventions: DocumentConventions): any; static transformMetadataKeys(metadata: MetadataObject, conventions: DocumentConventions): MetadataObject; private static transformAttachments; private static isSystemMetadataKey; static mapAttachmentDetailsToLocalObject(json: any): AttachmentDetails; static mapIncludesToLocalObject(json: any, conventions: DocumentConventions): Record; static mapCompareExchangeToLocalObject(json: Record): Record; static mapTimeSeriesIncludesToLocalObject(json: ServerCasing>): Record>; static mapCounterIncludesToLocalObject(json: object): Record; static isEmpty(object: Record): boolean; } export type FieldNameConversion = (fieldName: string) => string; export interface ObjectChangeCaseOptionsBase { recursive?: boolean; arrayRecursive?: boolean; ignoreKeys?: (string | RegExp)[]; ignorePaths?: (string | RegExp)[]; paths?: { transform: FieldNameConversion; path?: RegExp; }[]; } export interface ObjectChangeCaseOptions extends ObjectChangeCaseOptionsBase { defaultTransform: FieldNameConversion; } //# sourceMappingURL=ObjectUtil.d.ts.map