import * as t from 'io-ts'; import type { Decodable } from '../utils/types'; export declare const Service: { readonly PFS: "path_finding"; readonly MS: "monitoring"; }; export declare type Service = typeof Service[keyof typeof Service]; export declare const ServiceC: t.KeyofC<{ path_finding: string; monitoring: string; }>; export declare const ServiceDeviceId: { readonly [K in Service]: string; }; export declare const PfsMode: { readonly disabled: "disabled"; readonly auto: "auto"; readonly onlyAdditional: "onlyAdditional"; }; export declare type PfsMode = typeof PfsMode[keyof typeof PfsMode]; export declare const PfsModeC: t.KeyofC<{ disabled: string; auto: string; onlyAdditional: string; }>; export declare const Path: t.ReadonlyArrayC; export declare type Path = t.TypeOf; declare const _AddressMetadata: t.ReadonlyC>; export interface AddressMetadata extends t.TypeOf { } export interface AddressMetadataC extends t.Type> { } /** metadata/presence information of an address */ export declare const AddressMetadata: AddressMetadataC; declare const _AddressMetadataMap: t.ReadonlyC>; export declare type AddressMetadataMap = t.TypeOf; /** an address_metadata map which decodes to checksummed addresses as keys */ export declare const AddressMetadataMap: t.RefinementType>, Readonly<{ [x: string]: AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; export declare const RoutesExtra: t.PartialC<{ address_metadata: t.RefinementType>, Readonly<{ [x: string]: AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; }>; export declare const Fee: import("../utils/types").IntC<32>; export declare type Fee = t.TypeOf; /** Codec for raiden-ts internal representation of a PFS result/routes */ export declare const Paths: t.ReadonlyArrayC; fee: import("../utils/types").IntC<32>; }>, t.PartialC<{ address_metadata: t.RefinementType>, Readonly<{ [x: string]: AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; }>]>>>; export declare type Paths = t.TypeOf; /** * A broader codec representing paths received as input: * - paths array can come on a `route` or `path` member * - `fee` represents the final fee to be used, `estimated_fee` is what comes from PFS and can be * increased of fee margins * - rest is kept (currently, `address_metadata` map) * Paths is a specific subset of InputPaths */ export declare const InputPaths: t.ReadonlyArrayC; }>, t.TypeC<{ path: t.ReadonlyArrayC; }>]>, t.UnionC<[t.TypeC<{ fee: import("../utils/types").IntC<32>; }>, t.TypeC<{ estimated_fee: import("../utils/types").IntC<32>; }>]>, t.PartialC<{ address_metadata: t.RefinementType>, Readonly<{ [x: string]: AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; }>]>>>; export declare type InputPaths = t.TypeOf; /** Codec for result from PFS path request */ export declare const PfsResult: t.ReadonlyC; }>, t.TypeC<{ path: t.ReadonlyArrayC; }>]>, t.UnionC<[t.TypeC<{ fee: import("../utils/types").IntC<32>; }>, t.TypeC<{ estimated_fee: import("../utils/types").IntC<32>; }>]>, t.PartialC<{ address_metadata: t.RefinementType>, Readonly<{ [x: string]: AddressMetadata; }>, Readonly<{ [x: string]: Readonly<{ user_id: string; displayname: string; capabilities: string; }>; }>, unknown>; }>]>>>; }>>; /** Codec for PFS API returned error */ export declare const PfsError: t.ReadonlyC, t.PartialC<{ error_details: t.RecordC; }>]>>; export declare type PfsError = t.TypeOf; /** Public Raiden interface for routes data */ export declare type RaidenPaths = Decodable; /** * A PFS server/service instance info */ export declare const PFS: t.ReadonlyC; token: import("../utils/types").AddressC; validTill: t.NumberC; }>>; export interface PFS extends t.TypeOf { } /** * Public Raiden interface for PFS info */ export declare type RaidenPFS = Decodable; /** * An IOU used to pay the services */ export declare const IOU: t.ReadonlyC; claimable_until: import("../utils/types").UIntC<32>; one_to_n_address: import("../utils/types").AddressC; chain_id: import("../utils/types").UIntC<32>; }>>; export interface IOU extends t.TypeOf { } export declare const LastIOUResults: t.ReadonlyC; claimable_until: import("../utils/types").UIntC<32>; one_to_n_address: import("../utils/types").AddressC; chain_id: import("../utils/types").UIntC<32>; }>>>; }>>; export interface LastIOUResults extends t.TypeOf { } export declare const SuggestedPartner: t.ReadonlyC; centrality: t.UnionC<[t.NumberC, t.StringC]>; score: t.UnionC<[t.NumberC, t.StringC]>; uptime: t.UnionC<[t.NumberC, t.StringC]>; }>>; export interface SuggestedPartner extends t.TypeOf { } export declare const SuggestedPartners: t.ArrayC; centrality: t.UnionC<[t.NumberC, t.StringC]>; score: t.UnionC<[t.NumberC, t.StringC]>; uptime: t.UnionC<[t.NumberC, t.StringC]>; }>>>; export declare const ServicesValidityMap: t.ReadonlyC>; export declare type ServicesValidityMap = t.TypeOf; export {};