/**
 * Configuration Type Guards and Validators
 *
 * Type checking utilities for configuration validation.
 */
/**
 * Type guard: Check if value is a plain object.
 */
export function isObject(value) {
    return (typeof value === 'object' &&
        value !== null &&
        !Array.isArray(value) &&
        Object.prototype.toString.call(value) === '[object Object]');
}
/**
 * Type guard: Validate platform value.
 */
export function validatePlatform(platform) {
    return platform === 'web' || platform === 'server';
}
/**
 * Type guard: Check if config is multi-environment format.
 */
export function isMultiEnvConfig(data) {
    return (isObject(data) &&
        'version' in data &&
        data.version === 1 &&
        'environments' in data &&
        isObject(data.environments));
}
/**
 * Type guard: Check if config is single-environment format.
 *
 * @remarks
 * Only checks structural shape. Platform validation happens later in normalization.
 */
export function isSingleEnvConfig(data) {
    return (isObject(data) &&
        'flow' in data &&
        'build' in data &&
        isObject(data.flow) &&
        isObject(data.build) &&
        'platform' in data.flow);
}
// Legacy format support removed in v0.3.0
// See docs/MIGRATION.md for migration guide
//# sourceMappingURL=validators.js.map