import { Interface } from 'ethers/lib/utils'; export declare const HyperlaneStatus: { readonly none: "none"; readonly pending: "pending"; readonly delivered: "delivered"; readonly relayable: "relayable"; }; export type HyperlaneStatus = (typeof HyperlaneStatus)[keyof typeof HyperlaneStatus]; export type HyperlaneMessageResponse = { id: string; status: HyperlaneStatus; body: string; originMailbox: string; originDomainId: number; destinationDomainId: number; destinationMailbox?: string; recipient: string; sender: string; nonce: number; }; export declare const HYPERLANE_GRAPHQL_URL = "https://explorer4.hasura.app/v1/graphql"; export declare function stringToPostgresBytea(hexString: string): string; export declare function postgresByteaToString(byteString: string): string; export declare const MessageQuery = "\nquery ($id: bytea!) {\n message_view(\n where: {msg_id: {_eq: $id}}\n limit: 10\n ) {\n msg_id\n nonce\n sender\n recipient\n is_delivered\n message_body\n origin_mailbox\n origin_domain_id\n origin_chain_id\n destination_chain_id\n destination_domain_id\n destination_mailbox\n send_occurred_at\n delivery_occurred_at\n delivery_latency\n num_payments\n total_payment\n total_gas_amount\n }\n}"; export declare const getMailboxInterface: () => Interface; export declare const getGatewayInterface: () => Interface; export declare const getHyperlaneMessageStatusViaGraphql: (id: string) => Promise; export declare const getHyperlaneMessageStatusViaRestApi: (messageId: string) => Promise; export declare const getHyperlaneMessageStatus: (messageId: string) => Promise; /** * Check the delivered status of hyperlane message on the destination. * * @param messageId - The given hyperlane message Id. * @param rpcUrls - The list of rpc endpoint. * @param gateway - The gateway contract on the target domain. * * @returns - If it's delivered, returns true. If not, returns false. */ export declare const getHyperlaneMsgDelivered: (messageId: string, rpcUrls: string[], gateway: string) => Promise; //# sourceMappingURL=hyperlane.d.ts.map