UNPKG

@nfps.dev/runtime

Version:

Runtime library for NFPs

22 lines (21 loc) 853 B
import type { Nilable } from '@blake.regalia/belt'; import type { QueryPermit, SecretAccAddr } from '@solar-republic/contractor'; import type { AuthSecret_ViewerInfo, HttpsUrl } from '@solar-republic/neutrino'; import { SecretContract } from '@solar-republic/neutrino'; export type SlimTokenLocation = [ si_chain: string, sa_contract: SecretAccAddr, si_token: string ]; type InjectScripts = () => void; export type BootInfo = [ f_inject: InjectScripts, a_location: SlimTokenLocation, p_lcd: HttpsUrl, k_contract: SecretContract, z_auth: Nilable<AuthSecret_ViewerInfo | QueryPermit> ]; export declare const nfp_tags: (si_tag: string) => HTMLCollectionOf<Element>; export declare const nfp_attr: (dm_element: Element, si_attr: string) => string | null; export declare const boot: () => Promise<void | BootInfo>; export {};