import type { Domain, Domainlike, Eip1193Provider, EnvironmentMetadata, Route, RouteType, SygmaConfig, TransferStatusResponse } from './types.js'; import { Environment, Network } from './types.js'; export declare function getSygmaScanLink(sourceHash: string, environment: Environment): string; /** * Retrieves the environment metadata * * This function accepts an environment from the `Environment` enum as its parameter and returns the corresponding environment metadata. * If the specified environment does not have associated metadata in `EnvironmentMetadataConfig`, the function throws an error. * * @param environment - The environment key from the `Environment` enum. * * @returns {EnvironmentMetadata} An object mapping domain IDs to {DomainMetadata}. * * @throws {Error} Throws an error if the environment does not have defined metadata. * */ export declare function getEnvironmentMetadata(environment?: Environment): Promise; /** * Returns all Sygma supported domains (networks). * By default it will fetch domains configured for mainnet bridge deployment. * Alternative option can be specified in options.env. * You can filter domains with specifity types or ones that have at least one outbound route of specified type. */ export declare function getDomains(options: { routeTypes?: RouteType[]; environment: Environment; networkTypes?: Network[]; }): Promise; /** * Returns supported routes originating from given source domain. * @param {Domainlike} source Either caip2 identifier or chainId or Domain Object from SDK * @param {Environment} environment * @param {{routeTypes?: RouteType[]; sourceProvider?: Eip1193Provider;}} options Allows selecting bridge instance (mainnet by default) and filtering routes by type. */ export declare function getRoutes(source: Domainlike, environment?: Environment, options?: { routeTypes?: RouteType[]; sourceProvider?: Eip1193Provider; }): Promise; /** * TODO: why isn't txHash unique identifier * @param txHash * @param environment */ export declare function getTransferStatus(txHash: string, environment?: Environment): Promise; /** * End users shouldn't really need that but lets expose for power users * @param environment */ export declare function getRawConfiguration(environment?: Environment): Promise; /** * Validate Substrate address. * @param {string} address */ export declare function isValidSubstrateAddress(address: string): boolean; /** * Validate EVM address. * @param {string} address * @returns {boolean} */ export declare function isValidEvmAddress(address: string): boolean; /** * Validate Bitcoin address. * @param {string} address * @returns {boolean} */ export declare function isValidBitcoinAddress(environment: Environment, address: string): boolean; /** * Validate Address based on network. * @param {string} address * @param {Network} network * @returns {boolean} */ export declare function isValidAddressForNetwork(environment: Environment, address: string, network: Network): boolean; //# sourceMappingURL=utils.d.ts.map