• Validates that store is either undefined or a valid SdkStore. Returns undefined on success, or a GenericError describing the failure.

    Using this in factory functions avoids duplicating the isSdkStoreHandle guard + INVALID_STORE_MESSAGE string in every package.

    Parameters

    • store: unknown

    Returns undefined | { error: string; type: "argument_error" }