import type { Bridgey } from "./dollar.ts"; type BridgeyCtor = new (input?: unknown, selector?: string | null) => Bridgey; interface CompatDeps { /** 開発時のヒント(同じ key では1回だけ出る)。 */ hint(key: string, message: string): void; /** @name を data 属性に解決する。 */ resolveSelector(selector: string): string; } /** Bridgey.prototype と $$ に jQuery 互換の API を足す。 */ export declare function installCompat(BridgeyClass: BridgeyCtor, dollar: Record, deps: CompatDeps): void; export interface AjaxOptions { method?: string; data?: unknown; headers?: Record; type?: "json" | "text"; signal?: AbortSignal; } export interface AjaxPromise extends Promise { done(fn: (value: unknown) => void): AjaxPromise; fail(fn: (error: unknown) => void): AjaxPromise; always(fn: () => void): AjaxPromise; } export {};