import { Scope } from "./core/reactive.ts"; import type { Bridgey } from "./dollar.ts"; export type StateBag = Record; export interface BindOptions { /** 見つからない名前を警告しない(部分的に使うとき)。 */ quiet?: boolean; } type Wrap = (el: HTMLElement) => Bridgey; /** dollar.ts から必要なものを渡す(循環 import を避けるため)。 */ export declare function configureDirectives(options: { wrap?: Wrap; prefix?: () => string; warn?: (message: string) => void; enabled?: () => boolean; }): void; /** 読み込み完了後に一度だけ照合する。 */ export declare function scheduleUnboundCheck(): void; /** テスト用: load を待たずに照合を走らせる。 */ export declare function runUnboundCheckForTest(): void; /** * HTML の印を読んで状態と繋ぐ。 * $$.bind("#cart", { total, hasError, save }) * $$.bind(document.body, states) */ export declare function bind(root: string | Element | null, states: StateBag, options?: BindOptions): void; export { Scope };