import { ObjectPrettify } from "typeforge"; import type { CallApiMethod } from "../apis/apiGroup/apiGroup.types"; import { HttpHandlerProps, HttpResponse } from "../http/http.utils"; import { OpenbloxConfig } from "../config"; export type PollConfig = ObjectPrettify<{ iterations?: number; multiplyer?: number; retryOffset?: number; debug?: boolean; }>; export declare function pollMethod>, Method extends MethodBase | Awaited>(method: Method, handlerFn: (result: Awaited, stopPolling: () => void) => Promise): Promise>; export declare function pollHttp(this: OpenbloxConfig | void, httpArgs: HttpHandlerProps, handlerFn: (result: HttpResponse, stopPolling: () => void) => Promise): Promise;