import type { AddressOrPair, SignerOptions } from '@polkadot/api/types'; import type { Signer as PolkadotSigner } from '@polkadot/api/types'; import type { KeyringPair } from '@polkadot/keyring/types'; /** * A signer backed by an external wallet (browser extension, or the CLI's * remote-signing bridge). Holds the SS58 address plus a `@polkadot/api` * `Signer` that performs the actual `signPayload`/`signRaw`. */ export interface InjectedAcurastSigner { address: string; signer: PolkadotSigner; } /** * Anything that can sign an Acurast extrinsic. Either a mnemonic-derived * `KeyringPair` (Node / CLI default) or an injected wallet signer (browser * extension in the Playground, or the CLI remote-signing bridge). */ export type AcurastSigner = KeyringPair | InjectedAcurastSigner; export declare const isInjectedSigner: (signer: AcurastSigner) => signer is InjectedAcurastSigner; /** SS58 address of the signer, regardless of which kind it is. */ export declare const getSignerAddress: (signer: AcurastSigner) => string; /** * Normalise an {@link AcurastSigner} into the `(account, options)` pair that * `@polkadot/api`'s `signAndSend` expects: * - `KeyringPair` → `(pair, {})` * - injected wallet → `(address, { signer })` * * A `KeyringPair` is already a valid `AddressOrPair`, so the mnemonic path is * unchanged from before this abstraction existed. */ export declare const resolveSigner: (signer: AcurastSigner) => { account: AddressOrPair; options: Partial; }; //# sourceMappingURL=signer.d.ts.map