import { i as OpenClawConfig } from "./types.openclaw-oSBece7v.js";
//#region extensions/matrix/src/account-selection.d.ts
declare function resolveMatrixChannelConfig(cfg: OpenClawConfig): Record<string, unknown> | null;
declare function findMatrixAccountEntry(cfg: OpenClawConfig, accountId: string): Record<string, unknown> | null;
declare function resolveConfiguredMatrixAccountIds(cfg: OpenClawConfig, env?: NodeJS.ProcessEnv): string[];
declare function resolveMatrixDefaultOrOnlyAccountId(cfg: OpenClawConfig, env?: NodeJS.ProcessEnv): string;
declare function requiresExplicitMatrixDefaultAccount(cfg: OpenClawConfig, env?: NodeJS.ProcessEnv): boolean;
//#endregion
//#region extensions/matrix/src/env-vars.d.ts
declare function resolveMatrixEnvAccountToken(accountId: string): string;
declare function getMatrixScopedEnvVarNames(accountId: string): {
  homeserver: string;
  userId: string;
  accessToken: string;
  password: string;
  deviceId: string;
  deviceName: string;
};
declare function listMatrixEnvAccountIds(env?: NodeJS.ProcessEnv): string[];
//#endregion
//#region extensions/matrix/src/storage-paths.d.ts
declare function sanitizeMatrixPathSegment(value: string): string;
declare function resolveMatrixHomeserverKey(homeserver: string): string;
declare function hashMatrixAccessToken(accessToken: string): string;
declare function resolveMatrixCredentialsFilename(accountId?: string | null): string;
declare function resolveMatrixCredentialsDir(stateDir: string): string;
declare function resolveMatrixCredentialsPath(params: {
  stateDir: string;
  accountId?: string | null;
}): string;
declare function resolveMatrixLegacyFlatStoreRoot(stateDir: string): string;
declare function resolveMatrixLegacyFlatStoragePaths(stateDir: string): {
  rootDir: string;
  storagePath: string;
  cryptoPath: string;
};
declare function resolveMatrixAccountStorageRoot(params: {
  stateDir: string;
  homeserver: string;
  userId: string;
  accessToken: string;
  accountId?: string | null;
}): {
  rootDir: string;
  accountKey: string;
  tokenHash: string;
};
//#endregion
export { resolveMatrixDefaultOrOnlyAccountId as _, resolveMatrixCredentialsPath as a, resolveMatrixLegacyFlatStoreRoot as c, listMatrixEnvAccountIds as d, resolveMatrixEnvAccountToken as f, resolveMatrixChannelConfig as g, resolveConfiguredMatrixAccountIds as h, resolveMatrixCredentialsFilename as i, sanitizeMatrixPathSegment as l, requiresExplicitMatrixDefaultAccount as m, resolveMatrixAccountStorageRoot as n, resolveMatrixHomeserverKey as o, findMatrixAccountEntry as p, resolveMatrixCredentialsDir as r, resolveMatrixLegacyFlatStoragePaths as s, hashMatrixAccessToken as t, getMatrixScopedEnvVarNames as u };