export * from '../autogen/wasm.mjs'; export * from './keystore.mjs'; export * from './abi.mjs'; import { TxValidator } from './tx-validator.mjs'; /** * `loadLocusWasm` 의 옵션. * * - `baseUrl`: 4개의 .wasm 파일(`lclib.wasm`, `crypto_aimer.wasm`, `crypto_smaugt.wasm`, * `crypto_haetae.wasm`) 가 놓인 베이스 URL/경로. 기본은 라이브러리 * dist 의 `autogen/wasm/` 디렉토리(이 모듈의 `import.meta.url` 기준). * - `urls`: 개별 파일 위치를 따로 override. CDN 등으로 일부만 분리할 때 사용. * - `fetcher`: 완전 커스텀 다운로더. 인증 헤더 부여, 캐시 계층 삽입, Node 환경에서의 * 임의 경로 매핑, 테스트 시 인메모리 모킹 등에 사용. 시그니처는 * `(url: URL) => Promise`. */ export type LoadLocusWasmOptions = { baseUrl?: URL | string; urls?: Partial<{ lclib: URL | string; aimer: URL | string; smaugt: URL | string; haetae: URL | string; }>; fetcher?: (url: URL) => Promise; }; /** * Locus Chain WASM 4 개(Go lclib + AIMER/SMAUGT/HAETAE) 를 fetch 로 로드한다. * 브라우저 / Node 양쪽 모두 동작. */ export declare const loadLocusWasm: (opts?: LoadLocusWasmOptions) => Promise; export declare const txValidator: TxValidator; export declare const verifyTxParams: (rpcResult: { hash: string; tx: any; }, params: any, options: { targetTxHash?: string | false; }) => import("./tx-validator.mjs").IntegrityCheckResult; export declare const checkAddressType: (address: string) => number; export declare const isAccount: (addressType: number) => true | 2; export declare const isToken: (addressType: number) => addressType is 4 | 6 | 7; export declare const isSystemToken: (addressType: number) => addressType is 4;