import { PubSub } from "graphql-subscriptions"; export interface AsyncIterableIteratorWithInitialState extends AsyncIterableIterator { initialValuePushed: boolean; } export const withCancel: (asyncIterator: AsyncIterator, onCancel: (args?: P) => void, args?: P) => AsyncIterator; export class PubSubWithIntialValue extends PubSub { asyncIteratorWithInitialValue(topic: string | string[], initialValueFn: () => Promise): AsyncIterableIteratorWithInitialState; withCancel(asyncIterator: AsyncIterator, onCancel: (args?: P) => void, args?: P): AsyncIterator; } //# sourceMappingURL=index.d.ts.map