import { CapSecret } from "../../hdk/capabilities.js"; import { AgentPubKey, CellId, InstalledAppId } from "../../types.js"; import { Requester } from "../common.js"; import { InstalledAppInfo } from "../admin/index.js"; export declare type CallZomeRequestGeneric = { cap_secret: CapSecret | null; cell_id: CellId; zome_name: string; fn_name: string; payload: Payload; provenance: AgentPubKey; }; export declare type CallZomeResponseGeneric = Payload; export declare type CallZomeRequest = CallZomeRequestGeneric; export declare type CallZomeResponse = CallZomeResponseGeneric; export declare type AppInfoRequest = { installed_app_id: InstalledAppId; }; export declare type AppInfoResponse = InstalledAppInfo; export declare type AppSignal = { type: string; data: { cellId: CellId; payload: any; }; }; export declare type AppSignalCb = (signal: AppSignal) => void; export declare type SignalResponseGeneric = Payload; export interface AppApi { appInfo: Requester; callZome: Requester; }