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