import { DID } from './namelib'; import { IdentityRoots } from './cert'; import { DevTestKeyPair } from './dev_test_keys'; import { BuckyOSZoneTxtRecord } from './types'; export { calcPkgMetaObjId, normalizePackageMetaForObjId } from './ndn_types'; export { NODE_IDENTITY_SCHEMA_V2, DEVICE_DOC_JWT_FILE_NAME, DEVICE_MINI_DOC_JWT_FILE_NAME, NODE_GATEWAY_PARAMS_FILE_NAME, buildDeviceDid, bindDeviceDocumentDid, newDeviceDocumentByJwkWithDid, newLocalNodeIdentityConfig, loadLocalNodeIdentityConfig, deviceIdentityPathsForRoots, saveLocalDeviceIdentityForRoots, saveNodeGatewayParams, loadDeviceDocJwtForRoots, loadDeviceMiniDocJwtForRoots, loadLocalDeviceDocumentForRoots, decodeDeviceDocumentWithoutVerify, } from './device_identity'; export type { BuckyOSLocalNodeIdentityConfig, DeviceIdentityPaths, NewLocalNodeIdentityConfigParams } from './device_identity'; export { IdentityRoots, IDENTITY_MATERIALS, IDENTITY_USAGES, createCa, createCertFromCa, createIdentityCertFromCa, didWebDocumentUrl, encodeIdentityDirName, ensureCa, identityDirName, identityFileName, identityRawHostUri, } from './cert'; export type { CreateCaResult, CreateCertResult, CreateIdentityCertFromCaOptions, CreateIdentityCertResult, IdentityDirMatch, IdentityMatchType, IdentityMaterial, IdentityRootsOptions, IdentityUsage, X509PathMatch, X509Paths, } from './cert'; export { ACTIVATION_DEFAULT_RTCP_PORT, ACTIVATION_DEVICE_NAME, ACTIVATION_DOCUMENT_VALIDITY_SECONDS, ACTIVATION_LOCK_FILE_NAME, ACTIVATION_MIN_PASSWORD_LENGTH, ACTIVATION_NET_ID, ActivationError, activateOfflineZone, buildActivationDnsRecords, checkOfflineActivation, generateProvisionKeyPair, hashAdminPassword, inspectActivationRoot, validateAdminPassword, validateOwnerName, validatePublicIp, validateRtcpPort, validateZoneDomain, ZONE_DNS_RECORDS_FILE_NAME, ZONE_DOCUMENT_JWT_FILE_NAME, } from './provision_activate'; export type { ActivationDnsRecord, ActivationErrorDetails, ActivationFileEntry, ActivationFileRole, ActivationLockInfo, ActivationLockStage, ActivationProblem, ActivationState, ActivationStatus, CommittedActivationFile, ObservedActivationFile, OfflineActivationCheckOptions, OfflineActivationOptions, OfflineActivationPrecheck, OfflineActivationResult, OwnerKeyBackupTarget, ProvisionKeyPair, } from './provision_activate'; export { DEV_TEST_EVM_ACCOUNTS, DEV_TEST_EVM_SEED_SENDER, DEV_TEST_EVM_SEED_SENDER_INDEX, DEV_TEST_EVM_USER_INDEXES, DEV_TEST_KEY_INDEXES, DEV_TEST_KEYS, DEV_TEST_MNEMONIC, deriveDevTestEvmAccount, deriveDevTestEvmAccountFromMnemonic, deriveDevTestKeyPair, deriveDevTestKeyPairFromMnemonic, devTestKeccak256, getDevTestEvmAccountByIndex, getDevTestEvmAccountByUsername, getDevTestKeyPairById, getDevTestKeyPairByIndex, } from './dev_test_keys'; export type { DevTestEvmAccount, DevTestKeyPair } from './dev_test_keys'; export declare const PROVISION_BASE_TIME = 1743478939; export declare const PROVISION_DEFAULT_EXP: number; export declare function assertProvisionRuntime(): void; export interface CreateUserEnvParams { username: string; hostname: string; oodName: string; snBaseHost?: string; rtcpPort?: number; outputDir: string; ownerKeyPair?: DevTestKeyPair; deviceKeyPair?: DevTestKeyPair; } export declare function createUserEnv(params: CreateUserEnvParams): Promise; export interface CreateNodeConfigsParams { deviceName: string; envDir: string; netId?: string; ownerKeyPair?: DevTestKeyPair; deviceKeyPair?: DevTestKeyPair; now?: number; } export declare function nodeTestIdentityRoots(nodeDir: string): IdentityRoots; export declare function createNodeConfigs(params: CreateNodeConfigsParams): Promise; export declare class DevSnDb { private readonly dbPath; constructor(dbPath: string); private connect; initializeDatabase(): void; insertActivationCode(code: string): void; registerUserDirectly(username: string, publicKey: string, zoneConfig: string, userDomain?: string): void; registerDevice(username: string, deviceName: string, did: string, miniConfigJwt: string, ip: string, description: string): void; } export interface CreateSnConfigsParams { outputDir: string; snIp: string; snBaseHost: string; } export declare function createSnConfigs(params: CreateSnConfigsParams): Promise; export declare function registerUserToSn(rootDir: string, userZoneId: string, snDbPath: string): Promise; export declare function registerDeviceToSn(rootDir: string, userZoneId: string, deviceName: string, snDbPath: string): Promise; export interface PackageMetaNode { metaJwt: string; pkgName: string; version: string; tag?: string; author: string; authorPk: string; } export declare function versionToInt(version: string): bigint; export declare class MetaIndexDb { readonly dbPath: string; constructor(dbPath: string); private connect; initializeDatabase(): void; addPkgMetaBatch(pkgMetaMap: Record): void; } export declare function setPkgMeta(metaPath: string, dbPath: string): Promise; export declare const KERNEL_SERVICE_DOC_VERSION = "0.7.0"; export declare function uniqueNameToDid(uniqueName: string): DID; export interface BuildDidDocsOptions { version?: string; now?: number; } export declare function buildDidDocs(outputDir: string, options?: BuildDidDocsOptions): string[]; //# sourceMappingURL=provision.d.ts.map