///
import { NetworkInfo } from '@c2x/wallet-types';
import { CreateTxOptions, Tx } from '@xpla/xpla.js';
declare type ConnectResponse = {
address?: string;
};
declare type PostResponse = {
payload: {
result: {
height: number;
raw_log: string;
txhash: string;
};
};
};
declare type SignResponse = {
payload: {
result: Tx.Data;
};
};
declare type SignBytesResponse = {
payload: {
result: {
public_key: string;
recid: number;
signature: string;
};
};
};
declare type InfoResponse = NetworkInfo;
export interface FixedExtension {
post: (data: CreateTxOptions) => Promise;
sign: (data: CreateTxOptions) => Promise;
signBytes: (bytes: Buffer) => Promise;
info: () => Promise;
connect: () => Promise;
inTransactionProgress: () => boolean;
disconnect: () => void;
}
export declare function createFixedExtension(identifier: string): FixedExtension;
export {};