///
///
import { PsbtV2 } from "@ledgerhq/psbtv2";
import type { ScriptType } from "./types";
export declare function arePathsEqual(path1: number[], path2: number[]): boolean;
export declare function validateAccountPathConsistency(accountPath: number[], newAccountPath: number[], inputIndex: number): void;
export declare function validateScriptTypeConsistency(detectedScriptType: ScriptType | undefined, newScriptType: ScriptType | undefined, inputIndex: number): void;
export declare function resolveAccountPathFromOptions(accountPathOption?: string): number[];
/**
* Determines the script type for a single input from witness UTXO or redeem script.
*/
export declare function determineInputScriptType(psbt: PsbtV2, inputIndex: number): ScriptType | undefined;
/**
* Analyzes a single input to determine if it belongs to the connected signer and extracts account path and script type.
*/
export declare function analyzeInput(psbt: PsbtV2, inputIndex: number, masterFp: Buffer): {
belongsToSigner: boolean;
accountPath: number[];
scriptType: ScriptType | undefined;
};
/**
* Analyzes all inputs and returns resolved account path, detected script type, and internal input indices.
*/
export declare function analyzeAllInputs(psbt: PsbtV2, inputCount: number, masterFp: Buffer, accountPathOption?: string): {
accountPath: number[];
detectedScriptType: ScriptType | undefined;
internalInputIndices: number[];
};
//# sourceMappingURL=inputAnalysis.d.ts.map