/** * Shared type-guard and record utilities. * * Consolidates the `isRecord` guard and `JsonRecord` type that were * previously redefined across config.ts, eventstream.ts, kiro.ts, and * oauth.ts. Also centralizes the `nonEmptyString`/`optionalString` * string-coercion helper that was duplicated under two names. */ /** Record of string keys to unknown values. */ export type JsonRecord = Record; /** * Type guard: true when `value` is a non-array, non-null object. */ export declare function isRecord(value: unknown): value is JsonRecord; /** * Coerce an unknown value to a trimmed non-empty string, or `undefined`. * * Both `nonEmptyString` and `optionalString` had identical bodies across * the extension; they are the same helper. `optionalString` is re-exported * as an alias so existing call sites keep their readable local names. */ export declare function nonEmptyString(value: unknown): string | undefined; export { nonEmptyString as optionalString }; /** * Coerce an unknown value to a positive finite number, or `fallback`. * * Consolidates the identical `numberOr` (config.ts) and `numericSeconds` * (oauth.ts) coercions that previously carried the same body. */ export declare function positiveFiniteNumber(value: unknown, fallback: number): number;