import type { ComponentDocument, VariablesOf } from '@apollo-elements/core/types'; import { ApolloElement } from './apollo-element.js'; import { ApolloSubscriptionController } from '@apollo-elements/core/apollo-subscription-controller'; declare global { interface HTMLElementTagNameMap { 'apollo-subscription': ApolloSubscriptionElement; } } declare const ApolloSubscriptionElement_base: typeof ApolloElement; /** * Render a GraphQL subscription to the DOM * * @example Render a subscription to Shadow DOM * ```html * * * * * ``` * * @example Setting subscription and variables using the DOM * ```html * * * * * * ``` */ export declare class ApolloSubscriptionElement> extends ApolloSubscriptionElement_base { static readonly is = "apollo-subscription"; controller: ApolloSubscriptionController; /** @summary Flags an element that's ready and able to auto subscribe */ get canAutoSubscribe(): boolean; /** * @summary A GraphQL document containing a single subscription. */ subscription: null | ComponentDocument; /** @summary Context passed to the link execution chain. */ context?: Record; /** * @summary If true, the element will not begin querying data until you manually call `subscribe` * @attr no-auto-subscribe */ noAutoSubscribe: boolean; /** * @summary Whether or not updates to the network status should trigger next on the observer of this subscription. */ notifyOnNetworkStatusChange: boolean; /** * @summary Determines if your subscription should be unsubscribed and subscribed again. */ shouldResubscribe: boolean; /** * @summary If true, the query will be skipped entirely */ skip: boolean; /** * @summary Error policy for the subscription */ errorPolicy?: this['controller']['options']['errorPolicy']; /** * @summary Specifies the FetchPolicy to be used for this subscription. * @attr fetch-policy */ fetchPolicy?: this['controller']['options']['fetchPolicy']; /** * @summary The time interval (in milliseconds) on which this subscription should be refetched from the server. */ pollInterval?: number; /** * @summary Resets the observable and subscribes. */ subscribe(...args: Parameters): void; /** * @summary Cancels and clears the subscription */ cancel(): void; shouldSubscribe?(options?: Partial): boolean; } export {};