import { Filter } from "@welshman/util"; import { AdapterContext } from "./adapter.js"; export declare const COUNT_TIMEOUT = 3000; export declare const supportsCount: (relay: string) => boolean | undefined; export type CountOneOptions = { relay: string; filters: Filter[]; context?: AdapterContext; signal?: AbortSignal; }; /** * Asks one relay how many events match the given filters (NIP-45). * @param options - CountOneOptions * @returns the relay's count, or undefined if it does not support COUNT */ export declare const countOne: (options: CountOneOptions) => import("@welshman/lib").Deferred; export type CountOptions = { relays: string[]; filters: Filter[]; context?: AdapterContext; signal?: AbortSignal; }; /** * Asks several relays how many events match the given filters (NIP-45). Relays hold * overlapping subsets of the network, so the highest answer is a lower bound. * @param options - CountOptions * @returns the highest count given, or undefined if no relay supports COUNT */ export declare const count: (options: CountOptions) => Promise; //# sourceMappingURL=count.d.ts.map