import { Payload } from '../interfaces'; import { TypedSearchAttributes, SearchAttributes, SearchAttributeUpdatePair } from '../search-attributes'; import { PayloadConverter, JsonPayloadConverter } from './payload-converter'; /** * Converts Search Attribute values using JsonPayloadConverter */ export declare class SearchAttributePayloadConverter implements PayloadConverter { jsonConverter: JsonPayloadConverter; validNonDateTypes: string[]; toPayload(values: unknown): Payload; /** * Datetime Search Attribute values are converted to `Date`s */ fromPayload(payload: Payload): T; } export declare const searchAttributePayloadConverter: SearchAttributePayloadConverter; export declare class TypedSearchAttributePayloadConverter implements PayloadConverter { jsonConverter: JsonPayloadConverter; toPayload(attr: T): Payload; fromPayload(payload: Payload): T; } export declare const typedSearchAttributePayloadConverter: TypedSearchAttributePayloadConverter; export declare function encodeUnifiedSearchAttributes(searchAttributes?: SearchAttributes, // eslint-disable-line @typescript-eslint/no-deprecated typedSearchAttributes?: TypedSearchAttributes | SearchAttributeUpdatePair[]): Record; export declare function decodeSearchAttributes(indexedFields: Record | undefined | null): SearchAttributes; export declare function decodeTypedSearchAttributes(indexedFields: Record | undefined | null): TypedSearchAttributes;