/**
* @since 2.0.0
*/
import { Effect } from "effect";
import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs";
/**
* Type alias for the CML Relay class
*
* @since 2.0.0
* @category Types
*/
export type Relay = CML.Relay;
declare const RelayError_base: new = {}>(args: import("effect/Types").Equals extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
readonly _tag: "RelayError";
} & Readonly;
/**
* Error class for Relay operations
*
* This error is thrown when operations on Relay instances fail.
*
* @since 2.0.0
* @category Errors
*/
export declare class RelayError extends RelayError_base<{
message?: string;
}> {
}
/**
* Method free of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const free: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.free without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const freeUnsafe: (instance: CML.Relay) => void;
/**
* Method toCborBytes of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toCborBytes: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toCborBytes without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCborBytesUnsafe: (instance: CML.Relay) => Uint8Array;
/**
* Method toCanonicalCborBytes of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toCanonicalCborBytes: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toCanonicalCborBytes without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCanonicalCborBytesUnsafe: (instance: CML.Relay) => Uint8Array;
/**
* Static method fromCborBytes of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromCborBytes: (cborBytes: Uint8Array) => Effect.Effect;
/**
* Unsafely calls Relay.fromCborBytes without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromCborBytesUnsafe: (cborBytes: Uint8Array) => CML.Relay;
/**
* Method toCborHex of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toCborHex: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toCborHex without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCborHexUnsafe: (instance: CML.Relay) => string;
/**
* Method toCanonicalCborHex of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toCanonicalCborHex: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toCanonicalCborHex without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCanonicalCborHexUnsafe: (instance: CML.Relay) => string;
/**
* Static method fromCborHex of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromCborHex: (cborBytes: string) => Effect.Effect;
/**
* Unsafely calls Relay.fromCborHex without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromCborHexUnsafe: (cborBytes: string) => CML.Relay;
/**
* Method toJson of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toJson: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toJson without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toJsonUnsafe: (instance: CML.Relay) => string;
/**
* Method toJsValue of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const toJsValue: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.toJsValue without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toJsValueUnsafe: (instance: CML.Relay) => any;
/**
* Static method fromJson of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromJson: (json: string) => Effect.Effect;
/**
* Unsafely calls Relay.fromJson without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromJsonUnsafe: (json: string) => CML.Relay;
/**
* Static method newSingleHostAddr of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const newSingleHostAddr: (port: number, ipv4: CML.Ipv4, ipv6: CML.Ipv6) => Effect.Effect;
/**
* Unsafely calls Relay.newSingleHostAddr without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newSingleHostAddrUnsafe: (port: number, ipv4: CML.Ipv4, ipv6: CML.Ipv6) => CML.Relay;
/**
* Static method newSingleHostName of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const newSingleHostName: (port: number | undefined, dnsName: CML.DNSName) => Effect.Effect;
/**
* Unsafely calls Relay.newSingleHostName without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newSingleHostNameUnsafe: (port: number | undefined, dnsName: CML.DNSName) => CML.Relay;
/**
* Static method newMultiHostName of Relay
*
* @since 2.0.0
* @category Constructors
*/
export declare const newMultiHostName: (dnsName: CML.DNSName) => Effect.Effect;
/**
* Unsafely calls Relay.newMultiHostName without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newMultiHostNameUnsafe: (dnsName: CML.DNSName) => CML.Relay;
/**
* Method kind of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const kind: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.kind without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const kindUnsafe: (instance: CML.Relay) => CML.RelayKind;
/**
* Method asSingleHostAddr of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const asSingleHostAddr: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.asSingleHostAddr without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asSingleHostAddrUnsafe: (instance: CML.Relay) => CML.SingleHostAddr | undefined;
/**
* Method asSingleHostName of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const asSingleHostName: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.asSingleHostName without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asSingleHostNameUnsafe: (instance: CML.Relay) => CML.SingleHostName | undefined;
/**
* Method asMultiHostName of Relay
*
* @since 2.0.0
* @category Methods
*/
export declare const asMultiHostName: (instance: CML.Relay) => Effect.Effect;
/**
* Unsafely calls instance.asMultiHostName without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asMultiHostNameUnsafe: (instance: CML.Relay) => CML.MultiHostName | undefined;
export {};
//# sourceMappingURL=Relay.d.ts.map