/** * Type Guard Utilities * * Centralized type assertion and guard functions for runtime validation. * These utilities replace duplicated inline type checks across the codebase. */ /** * Assert that a value is a non-null, non-empty string * @throws Error if value is not a valid string */ export declare function assertString(value: unknown, name: string): asserts value is string; /** * Assert that a value is an array * @throws Error if value is not an array */ export declare function assertArray(value: unknown, name: string): asserts value is T[]; /** * Assert that a value is a non-empty array * @throws Error if value is not a non-empty array */ export declare function assertNonEmptyArray(value: unknown, name: string): asserts value is T[]; /** * Assert that a value is a non-null object (not null, not array) * @throws Error if value is not a valid object */ export declare function assertObject(value: unknown, name: string): asserts value is Record; /** * Assert that a value is defined (not null or undefined) * @throws Error if value is null or undefined */ export declare function assertDefined(value: null | T | undefined, name: string): asserts value is T; /** * Type guard: Check if value is a non-empty string */ export declare function isNonEmptyString(value: unknown): value is string; /** * Type guard: Check if value is a non-null, non-array object */ export declare function isObject(value: unknown): value is Record; /** * Type guard: Check if value is a non-empty object */ export declare function isNonEmptyObject(value: unknown): value is Record; /** * Type guard: Check if value is a valid number (not NaN, not Infinity) */ export declare function isValidNumber(value: unknown): value is number; /** * Type guard: Check if value is a non-empty array */ export declare function isNonEmptyArray(value: unknown): value is T[]; /** * Assert that a string value matches a required pattern * Combines string assertion with optional pattern validation * @throws Error if value is not a valid string or doesn't match pattern */ export declare function assertStringWithPattern(value: unknown, name: string, pattern?: RegExp, patternDescription?: string): asserts value is string; //# sourceMappingURL=type-guards.d.ts.map