import { AccountLike } from "@ledgerhq/types-live"; import { type ActionWithNonce } from "./types"; import { Device } from "../../hw/actions/types"; type AppOption = { requireLatestFirmware: boolean; allowPartialDependencies: boolean; skipAppInstallIfNotFound: boolean; }; export type PerpsUiHooks = { "signing.execute": (params: { appName: string | undefined; appOptions?: AppOption; signFactory: (device: Device) => Promise; onSuccess: (result: PerpsSignResult) => void; onError: (error: Error) => void; onCancel: () => void; }) => void; }; export type PerpsSignParams = { accountId: string; metadataWithSignature: string; actions: ActionWithNonce[]; options?: AppOption; }; export type Signature = { r: string; s: string; v: number; }; export type PerpsSignResult = { signatures: Signature[]; }; export declare const handlers: ({ accounts, uiHooks: { "signing.execute": uiSigningExecute }, }: { accounts: AccountLike[]; uiHooks: PerpsUiHooks; }) => { "custom.perps.signActions": import("@ledgerhq/wallet-api-server").RPCHandler; }; export {}; //# sourceMappingURL=server.d.ts.map