import type { EcdsaSignature } from '#internal/node';
import type { ServerKeyShare } from '../../mpc/types.js';
import type { DelegatedWalletClient } from '../createDelegatedClient.js';
import type { SignMessageContext } from '@dynamic-labs/sdk-api-core';
export declare const dynamicDelegatedSign: (client: DelegatedWalletClient, { walletId, shareSetId, message, isFormatted, walletApiKey, onError, context, }: {
    walletId: string;
    /**
     * Optional. The `shareSetId` from the `wallet.delegation.created`
     * webhook payload — a `WaasWallets.id`. NOT `keyShares[].id` from
     * `byWalletAddress` (that's a `WalletKeyShares.id`, a different
     * primary key). Omit and the server resolves the right share set
     * by walletId + shareSetType.
     */
    shareSetId?: string;
    message: string | Uint8Array;
    isFormatted?: boolean;
    walletApiKey: string;
    onError?: (error: Error) => void;
    context?: SignMessageContext;
}) => Promise<import("@dynamic-labs-wallet/core").OpenRoomResponse>;
export declare const delegatedSign: (client: DelegatedWalletClient, { chainName, message, roomId, keyShare, derivationPath, isFormatted, }: {
    chainName: string;
    message: string | Uint8Array;
    roomId: string;
    keyShare: ServerKeyShare;
    derivationPath: Uint32Array | undefined;
    isFormatted?: boolean;
}) => Promise<Uint8Array | EcdsaSignature>;
export declare const delegatedSignMessage: (client: DelegatedWalletClient, { walletId, shareSetId, walletApiKey, keyShare, message, chainName, derivationPath, isFormatted, onError, context, }: {
    walletId: string;
    /**
     * Optional. The `shareSetId` from the `wallet.delegation.created`
     * webhook payload — a `WaasWallets.id`. NOT `keyShares[].id` from
     * `byWalletAddress` (that's a `WalletKeyShares.id`, a different
     * primary key). Omit and the server resolves the right share set
     * by walletId + shareSetType.
     */
    shareSetId?: string;
    walletApiKey: string;
    keyShare: ServerKeyShare;
    message: string | Uint8Array;
    chainName: string;
    derivationPath?: Uint32Array;
    isFormatted?: boolean;
    onError?: (error: Error) => void;
    context?: SignMessageContext;
}) => Promise<Uint8Array | EcdsaSignature>;
//# sourceMappingURL=sign.d.ts.map