import type { ChannelSetupAdapter, ChannelSetupWizard, OpenClawConfig, WizardPrompter } from 'openclaw/plugin-sdk/setup'; import type { CertSummary, ProbeTlsParams, ProbeTlsResult, ValidateCaAgainstServerParams, ValidateCaAgainstServerResult, ValidateOAuthCredentialsParams, ValidateOAuthCredentialsResult } from './probe.d.mts'; import type { Locale } from './i18n'; type SetupPrompter = WizardPrompter & { password: (params: { message: string; validate?: (value: string) => string | undefined; }) => Promise; }; type TFn = (key: string, locale: Locale, vars?: Record) => string; interface ProbeModule { probeTls: (params: ProbeTlsParams) => Promise; parseCertFromPem: (bytes: Buffer | Uint8Array) => CertSummary | null; validateCaAgainstServer: (params: ValidateCaAgainstServerParams) => Promise; validateOAuthCredentials: (params: ValidateOAuthCredentialsParams) => Promise; } export declare function promptInteractiveInputs(prompter: SetupPrompter, wizard: ChannelSetupWizard, currentCfg: OpenClawConfig, t: TFn, locale: Locale): Promise; export declare function promptPassword(prompter: SetupPrompter, wizard: ChannelSetupWizard, cfg: OpenClawConfig, t: TFn, locale: Locale): Promise<{ cfg: OpenClawConfig; credentialValues: Record; }>; export declare function promptProbePreview(prompter: SetupPrompter, probeModule: ProbeModule, serverUrl: string, currentUseTls: boolean | undefined, currentPort: number | undefined, currentCaPath: string | undefined, currentTlsVerify: boolean | undefined, t: TFn, locale: Locale): Promise<{ useTls: boolean; port: number; caPath: string | undefined; caBytes: Buffer | Uint8Array | undefined; tlsVerify: boolean | undefined; }>; export declare function patchChannelWithFinalValues(cfg: OpenClawConfig, values: { serverUrl: string; username: string; password: string; useTls: boolean; port: number; caPath?: string; tlsVerify?: boolean; setupLocale?: Locale; }): OpenClawConfig; export declare const trueconfSetupAdapter: ChannelSetupAdapter; export interface RunWizardAndFinalizeArgs { cfg: OpenClawConfig; prompter: SetupPrompter; wizard: ChannelSetupWizard; probeModule: ProbeModule; locale: Locale; t: TFn; } export interface RunWizardAndFinalizeResult { cfg: OpenClawConfig; oauthOk: boolean; savedWithoutValidation: boolean; caPath?: string; tlsVerify?: boolean; } export declare function runWizardAndFinalize(args: RunWizardAndFinalizeArgs): Promise; export {}; //# sourceMappingURL=setup-shared.d.ts.map