import type { RxCollection, ReplicationPullOptions, ReplicationPushOptions, GraphQLServerUrl, RxGraphQLReplicationQueryBuilderResponseObject, RxGraphQLReplicationClientState } from '../../types'; import { RxReplicationState } from '../replication'; import { SyncOptionsGraphQL } from '../../index'; export declare class RxGraphQLReplicationState extends RxReplicationState { readonly url: GraphQLServerUrl; readonly clientState: RxGraphQLReplicationClientState; readonly replicationIdentifierHash: string; readonly collection: RxCollection; readonly deletedField: string; readonly pull?: ReplicationPullOptions | undefined; readonly push?: ReplicationPushOptions | undefined; readonly live?: boolean | undefined; retryTime?: number | undefined; autoStart?: boolean | undefined; constructor(url: GraphQLServerUrl, clientState: RxGraphQLReplicationClientState, replicationIdentifierHash: string, collection: RxCollection, deletedField: string, pull?: ReplicationPullOptions | undefined, push?: ReplicationPushOptions | undefined, live?: boolean | undefined, retryTime?: number | undefined, autoStart?: boolean | undefined); setHeaders(headers: { [k: string]: string; }): void; setCredentials(credentials: RequestCredentials | undefined): void; graphQLRequest(queryParams: RxGraphQLReplicationQueryBuilderResponseObject): Promise; } export declare function replicateGraphQL({ collection, url, headers, credentials, deletedField, waitForLeadership, pull, push, live, retryTime, // in ms autoStart, }: SyncOptionsGraphQL): RxGraphQLReplicationState; export * from './helper'; export * from './graphql-schema-from-rx-schema'; export * from './query-builder-from-rx-schema'; export * from './graphql-websocket';