import { type FasedAgentConfig } from "../config/config.js";
import type { WalletChain, WalletProviderId } from "../config/types.wallet.js";
import { type RuntimeEnv } from "../runtime.js";
import { type WalletInboundStatus } from "../wallet/wallet-inbound-events.js";
export type WalletSetupOptions = {
    managed?: boolean;
    json?: boolean;
    mode?: "embedded" | "embedded-create" | "embedded-import" | "local-signer-create" | "local-signer-import" | "local-signer" | "turnkey" | "alchemy" | "privy";
    chain?: WalletChain;
    walletId?: string;
    walletName?: string;
    privateKey?: string;
    apiKey?: string;
    rpcUrl?: string;
    noDoctor?: boolean;
    noSignerHints?: boolean;
    nonInteractive?: boolean;
    turnkeyApiPublicKey?: string;
    turnkeyApiPrivateKey?: string;
    turnkeyOrganizationId?: string;
    turnkeyBaseUrl?: string;
    turnkeyStamp?: string;
    showPrivateKeyOnce?: boolean;
    confirmPrivateKeyPrint?: string;
    role?: string;
    noProviderIdUpdate?: boolean;
    force?: boolean;
    enableLimitOrders?: boolean;
    disableLimitOrders?: boolean;
    jupiterApiKey?: string;
    jupiterTriggerApiBaseUrl?: string;
};
export type WalletLimitOrdersOptions = {
    enable?: boolean;
    disable?: boolean;
    jupiterApiKey?: string;
    jupiterTriggerApiBaseUrl?: string;
    nonInteractive?: boolean;
    json?: boolean;
};
export type WalletStatusOptions = {
    json?: boolean;
};
export type WalletRotateKeysOptions = {
    json?: boolean;
};
export type WalletStackOptions = {
    json?: boolean;
    tail?: number;
};
export type WalletMigrateOptions = {
    from: string;
    to: string;
    json?: boolean;
};
export type WalletCanaryOptions = {
    json?: boolean;
    requireRealChain?: boolean;
    executeRecoveryDrill?: boolean;
    executeProviderE2E?: boolean;
    executeLiveSend?: boolean;
    providers?: string[];
};
export type WalletCustodyInitOptions = {
    json?: boolean;
    force?: boolean;
    deviceShare?: string;
    walletId?: string;
};
export type WalletCustodyLockOptions = {
    json?: boolean;
    host?: string;
    walletId?: string;
};
export type WalletInboundPollOptions = {
    json?: boolean;
    providerId?: string;
    walletId?: string;
    walletName?: string;
    chain?: "solana" | "all";
};
export type WalletInboundListOptions = {
    json?: boolean;
    providerId?: string;
    walletId?: string;
    chain?: "solana";
    status?: WalletInboundStatus | "all";
    limit?: number;
};
export type WalletInboundReconcileOptions = {
    json?: boolean;
};
export type WalletKeystoreInitOptions = {
    json?: boolean;
    out?: string;
    rpcUrl?: string;
    passphrase?: string;
    chain?: WalletChain;
    walletId?: string;
    showPrivateKeyOnce?: boolean;
    confirmPrivateKeyPrint?: string;
    force?: boolean;
    name?: string;
    role?: string;
    skipProviderConfig?: boolean;
    providerIdForRegistry?: WalletProviderId;
    suppressExtraLogs?: boolean;
};
export type WalletKeystoreImportOptions = {
    json?: boolean;
    out?: string;
    rpcUrl?: string;
    passphrase?: string;
    privateKey?: string;
    chain?: WalletChain;
    walletId?: string;
    force?: boolean;
    name?: string;
    role?: string;
    skipProviderConfig?: boolean;
    providerIdForRegistry?: WalletProviderId;
    suppressExtraLogs?: boolean;
};
export type WalletKeystoreStatusOptions = {
    json?: boolean;
    walletId?: string;
    chain?: WalletChain;
};
export type WalletKeystoreValidateOptions = {
    json?: boolean;
    expectChainId?: number;
    chain?: WalletChain;
    walletId?: string;
};
export type WalletKeystorePassphraseInitOptions = {
    json?: boolean;
    out?: string;
    length?: number;
    force?: boolean;
};
export type WalletKeystorePassphraseRotateOptions = {
    json?: boolean;
    file?: string;
    oldPassphrase?: string;
    newPassphrase?: string;
};
export type WalletKeystoreExportOptions = {
    json?: boolean;
    out?: string;
    includeSecret?: boolean;
    confirmIncludeSecret?: string;
};
export type WalletProviderConfigureOptions = {
    providerId: "turnkey" | "privy" | "alchemy";
    json?: boolean;
    rpcUrl?: string;
    values?: string[];
};
export type WalletRoleSetOptions = {
    walletId: string;
    role: string;
    primary?: boolean;
    json?: boolean;
};
export type WalletPolicyProfileApplyOptions = {
    json?: boolean;
    profile: "autonomous-strict" | "autonomous-moderate" | "manual-owner";
    allowSkills?: string[];
    allowSources?: string[];
};
export type WalletSignerServeOptions = {
    socketPath?: string;
    readOnly?: boolean;
    pidFile?: string;
    auditLog?: string;
};
export type WalletSignerBrokerOptions = {
    socketPath?: string;
    backendSocketPath?: string;
    readOnly?: boolean;
    pidFile?: string;
    auditLog?: string;
};
export declare function resolveLegacyLocalSignerEmbeddedScope(params: {
    cfg: FasedAgentConfig;
    env: NodeJS.ProcessEnv;
    chain: WalletChain;
    walletId?: string;
}): {
    effectiveEnv: {
        [x: string]: string | undefined;
    };
    keystorePath: string;
    rpcUrl: string;
};
export declare function createLegacyLocalSignerEmbeddedAdapter(params: {
    cfg: FasedAgentConfig;
    env: NodeJS.ProcessEnv;
    chain: WalletChain;
    walletId?: string;
}): import("../wallet/wallet-provider-adapter.ts").WalletProviderAdapter;
export type WalletSignerDoctorOptions = {
    json?: boolean;
    socketPath?: string;
    config?: FasedAgentConfig;
    checkRpc?: boolean;
};
export type WalletSignerDoctorReport = {
    ok: boolean;
    socketPath: string;
    pidPath: string;
    auditPath: string;
    checks: Array<{
        check: string;
        ok: boolean;
        detail?: string;
    }>;
};
export declare function walletLimitOrdersConfigureCommand(runtime?: RuntimeEnv, options?: WalletLimitOrdersOptions): Promise<void>;
export declare function walletSetupCommand(runtime?: RuntimeEnv, options?: WalletSetupOptions): Promise<void>;
export declare function walletRoleSetCommand(runtime: RuntimeEnv | undefined, options: WalletRoleSetOptions): Promise<void>;
export declare function walletStatusCommand(runtime?: RuntimeEnv, options?: WalletStatusOptions): Promise<void>;
export declare function walletKeystoreInitCommand(runtime?: RuntimeEnv, options?: WalletKeystoreInitOptions): Promise<void>;
export declare function walletKeystoreImportCommand(runtime?: RuntimeEnv, options?: WalletKeystoreImportOptions): Promise<void>;
export declare function walletKeystoreStatusCommand(runtime?: RuntimeEnv, options?: WalletKeystoreStatusOptions): Promise<void>;
export declare function walletKeystoreValidateCommand(runtime?: RuntimeEnv, options?: WalletKeystoreValidateOptions): Promise<void>;
export declare function walletKeystorePassphraseInitCommand(runtime?: RuntimeEnv, options?: WalletKeystorePassphraseInitOptions): Promise<void>;
export declare function walletKeystorePassphraseRotateCommand(runtime?: RuntimeEnv, options?: WalletKeystorePassphraseRotateOptions): Promise<void>;
export declare function walletKeystoreExportCommand(runtime?: RuntimeEnv, options?: WalletKeystoreExportOptions): Promise<void>;
export declare function walletProviderConfigureCommand(runtime: RuntimeEnv, options: WalletProviderConfigureOptions): Promise<void>;
export declare function walletPolicyProfileApplyCommand(runtime: RuntimeEnv | undefined, options: WalletPolicyProfileApplyOptions): Promise<void>;
export declare function walletSignerServeCommand(runtime?: RuntimeEnv, options?: WalletSignerServeOptions): Promise<void>;
export declare function walletSignerBrokerCommand(runtime?: RuntimeEnv, options?: WalletSignerBrokerOptions): Promise<void>;
export declare function collectWalletSignerDoctorReport(env?: NodeJS.ProcessEnv, options?: WalletSignerDoctorOptions): Promise<WalletSignerDoctorReport>;
export declare function walletSignerDoctorCommand(runtime?: RuntimeEnv, options?: WalletSignerDoctorOptions): Promise<void>;
export declare function walletRotateKeysCommand(runtime?: RuntimeEnv, options?: WalletRotateKeysOptions): Promise<void>;
export declare function initializeWalletCustodyForWallet(params: {
    walletId?: string;
    deviceShare?: string;
    force?: boolean;
    env?: NodeJS.ProcessEnv;
    cfg?: FasedAgentConfig;
}): Promise<{
    ok: true;
    scheme: "shamir-2ofn-v1";
    statePath: string;
    walletId: string;
    role: import("../wallet/wallet-custody.js").WalletCustodyRole;
    deviceShare: string;
    recoveryShare: string;
    secretBytes: number;
    updatedAt: string;
    migratedKeystores: {
        chain: "solana";
        walletId: string | undefined;
        path: string;
    }[];
    walletProvider: "local-socket-signer";
    executionMode: import("../config/types.wallet.js").WalletExecutionMode;
    removedManagedPassphraseFile: boolean;
    removedManagedPassphraseFilePath: string | undefined;
    signerRestarted: boolean;
    signerRestartError: string | undefined;
}>;
export declare function disableWalletCustodyForWallet(params: {
    walletId?: string;
    deviceShare?: string;
    recoveryShare?: string;
    env?: NodeJS.ProcessEnv;
    cfg?: FasedAgentConfig;
}): Promise<{
    ok: true;
    walletId: string;
    migratedKeystores: {
        chain: "solana";
        walletId: string | undefined;
        path: string;
    }[];
    remainingCustodyWallets: string;
    passphraseFile: string;
    custodyStateRemoved: boolean;
    custodyStatePath: string;
    unlockSessionsCleared: number;
    unlockSessionClearError: string | undefined;
    signerRestarted: boolean;
    signerRestartError: string | undefined;
}>;
export declare function walletCustodyInitCommand(runtime?: RuntimeEnv, options?: WalletCustodyInitOptions): Promise<void>;
export declare function walletCustodyLockCommand(runtime?: RuntimeEnv, options?: WalletCustodyLockOptions): Promise<void>;
export declare function walletStackInstallCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletStackUpCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletStackDownCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletStackStatusCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletStackValidateCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletStackLogsCommand(runtime?: RuntimeEnv, options?: WalletStackOptions): Promise<void>;
export declare function walletMigrateCommand(runtime: RuntimeEnv | undefined, options: WalletMigrateOptions): Promise<void>;
export declare function walletCanaryCommand(runtime?: RuntimeEnv, options?: WalletCanaryOptions): Promise<void>;
export declare function walletInboundPollCommand(runtime?: RuntimeEnv, options?: WalletInboundPollOptions): Promise<void>;
export declare function walletInboundListCommand(runtime?: RuntimeEnv, options?: WalletInboundListOptions): Promise<void>;
export declare function walletInboundReconcileCommand(runtime?: RuntimeEnv, options?: WalletInboundReconcileOptions): Promise<void>;
