import type { Payload } from '../interfaces'; import type { SearchAttributes, SearchAttributeUpdatePair } from '../search-attributes'; import { TypedSearchAttributes } from '../search-attributes'; import type { PayloadConverter } from './payload-converter'; import { 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, typedSearchAttributes?: TypedSearchAttributes | SearchAttributeUpdatePair[]): Record; export declare function decodeSearchAttributes(indexedFields: Record | undefined | null): SearchAttributes; export declare function decodeTypedSearchAttributes(indexedFields: Record | undefined | null): TypedSearchAttributes;