import { SearchService } from '../../index'; import { ILogger } from '../../../logger'; import { PostgresClientType } from '../../../../types/postgres'; import { ProviderClient, ProviderTransaction } from '../../../../types/provider'; declare class PostgresSearchService extends SearchService { pgClient: PostgresClientType; transact(): ProviderTransaction; constructor(searchClient: PostgresClientType & ProviderClient, storeClient?: PostgresClientType & ProviderClient); init(namespace: string, appId: string, logger: ILogger): Promise; createSearchIndex(indexName: string, prefixes: string[], schema: string[]): Promise; listSearchIndexes(): Promise; updateContext(key: string, fields: Record): Promise; setFields(key: string, fields: Record): Promise; getField(key: string, field: string): Promise; getFields(key: string, fields: string[]): Promise; getAllFields(key: string): Promise>; deleteFields(key: string, fields: string[]): Promise; incrementFieldByFloat(key: string, field: string, increment: number): Promise; sendQuery(query: string): Promise; /** * assume aggregation type query */ sendIndexedQuery(type: string, queryParams?: any[]): Promise; findEntities(entity: string, conditions: Record, options?: { limit?: number; offset?: number; }): Promise; findEntityById(entity: string, id: string): Promise; findEntitiesByCondition(entity: string, field: string, value: any, operator?: '=' | '!=' | '>' | '<' | '>=' | '<=' | 'LIKE' | 'IN', options?: { limit?: number; offset?: number; }): Promise; createEntityIndex(entity: string, field: string, indexType?: 'btree' | 'gin' | 'gist'): Promise; private mongoToSqlOperator; private inferType; } export { PostgresSearchService };