/** * @fileoverview chainweb_principal_namespace - compute `n_<40 hex>` via /local. * * Uses `(ns.create-principal-namespace (read-keyset "ks"))` to derive the * deterministic principal namespace name from a keyset. The keyset is * passed via envData so callers never build Pact literal syntax. */ import { z } from 'zod'; import type { ChainwebClient } from '../client/fetch.js'; export declare const PRINCIPAL_NS_REGEX: RegExp; export declare const PrincipalNamespaceInputShape: { chainId: z.ZodString; keyset: z.ZodObject<{ keys: z.ZodArray; pred: z.ZodDefault; }, z.core.$strip>; }; export declare const PrincipalNamespaceInputSchema: z.ZodObject<{ chainId: z.ZodString; keyset: z.ZodObject<{ keys: z.ZodArray; pred: z.ZodDefault; }, z.core.$strip>; }, z.core.$strip>; export interface PrincipalNamespaceResult { namespace: string; gasUsed: number; chainId: string; } export interface PrincipalNamespaceToolConfig { client: ChainwebClient; defaultSender?: string; gasPrice?: number; } export declare function createPrincipalNamespaceTool(config: PrincipalNamespaceToolConfig): (args: unknown) => Promise<{ content: PrincipalNamespaceResult[]; }>; //# sourceMappingURL=principal-namespace.d.ts.map