import type { CacheQuery } from "@okcontract/coredata";
export declare const okdb_chains: {
    readonly goerli: "0x";
};
export declare const okdb_default_chain = "goerli";
export declare const okdb_abi: string[];
/**
 * load_okdb_contract loads the okdb contract for the current chain.
 * @param core
 * @todo now that we have RPCs, just use one chain
 */
export declare const load_okdb_contract: () => Promise<void>;
/**
 * okdb_can_write calls okdb to know if given address can write the following query.
 * @param id
 * @param q
 * @returns
 * @todo load_okdb_contract must be called
 */
export declare const okdb_can_write: (id: string, q: CacheQuery) => Promise<boolean>;
/**
 * owned_orgs
 * @param core
 * @returns
 */
export declare const owned_orgs: () => Promise<void>;
export declare const read_data: (q: CacheQuery) => Promise<void>;
export declare const apply_data: (l: Uint8Array[]) => void;
