import { AccountLike } from "@ledgerhq/types-live";
import { type ActionWithNonce } from "./types";
import { AppResult } from "../../hw/actions/app";
type AppOption = {
    requireLatestFirmware: boolean;
    allowPartialDependencies: boolean;
    skipAppInstallIfNotFound: boolean;
};
export type PerpsUiHooks = {
    "device.select": (params: {
        appName: string | undefined;
        appOptions?: AppOption;
        onSuccess: (result: Pick<AppResult, "device">) => 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: { "device.select": uiDeviceSelect }, }: {
    accounts: AccountLike[];
    uiHooks: PerpsUiHooks;
}) => {
    "custom.perps.signActions": import("@ledgerhq/wallet-api-server").RPCHandler<PerpsSignResult, PerpsSignParams>;
};
export {};
//# sourceMappingURL=server.d.ts.map