import * as z from "zod/mini"; /** * A relay origin id, encoded as a 62-bit varint on the wire. * * The {@link OriginSchema} validates any incoming value and brands it so the * type system enforces "only validated origins flow into hop lists." Internal * code that synthesizes an id (e.g. {@link randomOrigin}) uses * `OriginSchema.parse(...)` to produce a branded value from the raw bigint. */ export declare const OriginSchema: z.core.$ZodBranded, "Origin", "out">; export type Origin = z.infer; /** * Generate a fresh origin with a random non-zero 62-bit id. * * `crypto.getRandomValues` is overkill for best-effort loop detection, but * used for slightly better distribution than `Math.random` at negligible cost. */ export declare function randomOrigin(): Origin; //# sourceMappingURL=origin.d.ts.map