import { i as __exportAll, n as Provider } from "./advancedBarrel-Difkv-pL.js"; import { ccc } from "@ckb-ccc/core"; //#region src/signer.d.ts /** * Class representing a Bitcoin signer that extends SignerBtc * @public */ declare class Signer extends ccc.SignerBtc { readonly provider: Provider; readonly network: string; /** * Creates an instance of Signer. * @param client - The client instance. * @param provider - The provider instance. */ constructor(client: ccc.Client, provider: Provider, _preferredNetworks?: ccc.NetworkPreference[], network?: string); _getNetworkToChange(): Promise; /** * Ensure the BTC network is the same as CKB network. */ ensureNetwork(): Promise; /** * Gets the Bitcoin account address. * @returns A promise that resolves to the Bitcoin account address. */ getBtcAccount(): Promise; /** * Gets the Bitcoin public key. * @returns A promise that resolves to the Bitcoin public key. */ getBtcPublicKey(): Promise; /** * Connects to the provider by requesting accounts. * @returns A promise that resolves when the connection is established. */ connect(): Promise; onReplaced(listener: () => void): () => void; /** * Checks if the signer is connected. * @returns A promise that resolves to true if connected, false otherwise. */ isConnected(): Promise; /** * Signs a raw message with the Bitcoin account. * @param message - The message to sign. * @returns A promise that resolves to the signed message. */ signMessageRaw(message: string | ccc.BytesLike): Promise; /** * Signs a PSBT using UniSat wallet. * * @param psbtHex - The hex string of PSBT to sign. * @param options - Options for signing the PSBT * @returns A promise that resolves to the signed PSBT as a Hex string */ signPsbt(psbtHex: ccc.HexLike, options?: ccc.SignPsbtOptionsLike): Promise; /** * Broadcasts a signed PSBT to the Bitcoin network. * * @param psbtHex - The hex string of signed PSBT to broadcast. * @returns A promise that resolves to the transaction ID as a Hex string */ broadcastPsbt(psbtHex: ccc.HexLike, _options?: ccc.SignPsbtOptionsLike): Promise; } //#endregion //#region src/signersFactory.d.ts /** * Retrieves the UniSat signer if available. * @public * * @param client - The client instance. * @returns The Signer instance if the UniSat provider is available, otherwise undefined. */ declare function getUniSatSigners(client: ccc.Client, preferredNetworks?: ccc.NetworkPreference[]): ccc.SignerInfo[]; declare namespace barrel_d_exports { export { Signer, getUniSatSigners }; } //#endregion export { Signer, getUniSatSigners, barrel_d_exports as t }; //# sourceMappingURL=barrel.d.ts.map